<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>78352</bug_id>
          
          <creation_ts>2004-03-24 07:07:37 +0000</creation_ts>
          <short_desc>Problem when kontact session is restored after logout,login</short_desc>
          <delta_ts>2007-12-11 17:44:27 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>kmail</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>RedHat Enterprise Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="zabilcm">zabilcm</reporter>
          <assigned_to name="Daniel Molkentin">molkentin</assigned_to>
          <cc>Stefan.Borggraefe</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>100</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>218584</commentid>
    <comment_count>0</comment_count>
    <who name="zabilcm">zabilcm</who>
    <bug_when>2004-03-24 07:07:37 +0000</bug_when>
    <thetext>Version:            (using KDE KDE 3.2.1)
Installed from:    RedHat RPMs
OS:          Linux

The &quot;lock&quot; file in &apos;~/.kde/share/apps/kmail&apos; folder does not get deleted when the user ends session/logs out while running &apos;kontact&apos;.
Because of this reason when the user log&apos;s in, an attempt is made to restore the kontact session and while this happens a message stating that there is already one instance of kmail running as indicated by the &quot;lock&quot; file.
The only way to get contact running after this is manually deleting the &quot;lock&quot; file in the &apos;~/.kde/share/apps/kmail&apos; folder.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>218830</commentid>
    <comment_count>1</comment_count>
    <who name="">tjg</who>
    <bug_when>2004-03-25 04:25:22 +0000</bug_when>
    <thetext>I have a similar problem, though it doens not happen every time. It happens frequently enough to be annoying.

I believe it is related to Kontact or KMail not shutting down correctly when I shut my notebook down without closing KMail first. 

I&apos;m not sure, but I don&apos;t believe I&apos;ve ever had the problem if I&apos;ve closed Kontact before shutting my system down.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>289031</commentid>
    <comment_count>2</comment_count>
    <who name="">info</who>
    <bug_when>2004-11-25 18:37:59 +0000</bug_when>
    <thetext>I had this problem in previous versions but never in 3.3. or 3.3.1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>317623</commentid>
    <comment_count>3</comment_count>
    <who name="Peter Thomassen">mail</who>
    <bug_when>2005-02-23 21:17:10 +0000</bug_when>
    <thetext>I can confirm #1, and this is very annoying.

BTW: Is the session saved when calling &quot;halt&quot;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>339246</commentid>
    <comment_count>4</comment_count>
    <who name="Artur Jaroschek">arturj</who>
    <bug_when>2005-05-03 11:05:48 +0000</bug_when>
    <thetext>I have a related bug in 3.3. When I login kontact is always restored correctly. But when I try to start kontact (again), to bring it to front I get this error message that kontact is already running and I have the option to kill kontact or to go on. This only habbens when the first instance of kontact is started by restoring the previous session. It does not appear when I start kontact manually and then try to start kontact again. Very annoying since I use my multi-media-keys to bring kontact to front...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>349012</commentid>
    <comment_count>5</comment_count>
    <who name="Daniel Molkentin">molkentin</who>
    <bug_when>2005-06-09 15:27:44 +0000</bug_when>
    <thetext>Can someone from the kmail hackers please have a look at the session management when running in kontact?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>368710</commentid>
    <comment_count>6</comment_count>
    <who name="Janis M.">meybohm</who>
    <bug_when>2005-08-25 15:23:52 +0000</bug_when>
    <thetext>I got a similar prblem in KDE3.4.0 (Kontact 1.1). If Kontakt is killed with kill oder killall the pid value in the lock file will not be set to -1. If I log out from KDE (Kontact still running) the pid value is set to -1 (sometimes, not every time.).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>369500</commentid>
    <comment_count>7</comment_count>
      <attachid>12415</attachid>
    <who name="Janis M.">meybohm</who>
    <bug_when>2005-08-29 11:37:29 +0000</bug_when>
    <thetext>Created attachment 12415
Patch for kmstartup.cpp.

We have created a Patch for KMails kmstartup.cpp.
It fixes the problem for us. (Sets -1 as Pid value in the lock-file. Even if
Kontact gets SIGTERM or SIGHUP etc.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>407596</commentid>
    <comment_count>8</comment_count>
    <who name="Stefan Borggraefe">Stefan.Borggraefe</who>
    <bug_when>2006-01-20 07:42:55 +0000</bug_when>
    <thetext>I still run into this bug with Kontact 1.2/KDE 3.5.

Why wasn&apos;t the attached patch checked in? Maybe it could be refactored to avoid the code duplication, but isn&apos;t it the right approach?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>562303</commentid>
    <comment_count>9</comment_count>
    <who name="FiNeX">finex</who>
    <bug_when>2007-12-11 17:44:27 +0000</bug_when>
    <thetext>Kontact on KDE 3.5.8 and KDE 4 is working fine. After killing process there is no more file locking problems.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>12415</attachid>
            <date>2005-08-29 11:37:29 +0000</date>
            <delta_ts>2005-08-29 11:37:29 +0000</delta_ts>
            <desc>Patch for kmstartup.cpp.</desc>
            <filename>kmail-startup-pid.patch</filename>
            <type>text/plain</type>
            <size>835</size>
            <attacher name="Janis M.">meybohm</attacher>
            
              <data encoding="base64">LS0tIGttc3RhcnR1cC5jcHAub3JpZwlGcmkgQXVnIDI2IDA3OjI4OjU5IDIwMDUKKysrIGttc3Rh
cnR1cC5jcHAJVGh1IEF1ZyAyNSAxNjo0NDozMyAyMDA1CkBAIC0zNiw2ICszNiwxMCBAQAogewog
ICBrbXNldFNpZ25hbEhhbmRsZXIoU0lHX0RGTCk7CiAgIGZwcmludGYoc3RkZXJyLCAiKioqIEtN
YWlsIGdvdCBzaWduYWwgJWQgKEV4aXRpbmcpXG4iLCBzaWdJZCk7CisgIFFTdHJpbmcgbG9ja0xv
Y2F0aW9uID0gbG9jYXRlTG9jYWwoImRhdGEiLCAia21haWwvbG9jayIpOworICBLU2ltcGxlQ29u
ZmlnIGNvbmZpZyhsb2NrTG9jYXRpb24pOworICBjb25maWcud3JpdGVFbnRyeSgicGlkIiwgLTEp
OworICBjb25maWcuc3luYygpOwogICAvLyB0cnkgdG8gY2xlYW51cCBhbGwgd2luZG93cwogICBp
ZiAoa21rZXJuZWwpIGtta2VybmVsLT5kdW1wRGVhZExldHRlcnMoKTsKICAgOjpleGl0KC0xKTsg
Ly8KQEAgLTQ2LDYgKzUwLDEwIEBACiB7CiAgIGttc2V0U2lnbmFsSGFuZGxlcihTSUdfREZMKTsK
ICAgZnByaW50ZihzdGRlcnIsICIqKiogS01haWwgZ290IHNpZ25hbCAlZCAoQ3Jhc2hpbmcpXG4i
LCBzaWdJZCk7CisgIFFTdHJpbmcgbG9ja0xvY2F0aW9uID0gbG9jYXRlTG9jYWwoImRhdGEiLCAi
a21haWwvbG9jayIpOworICBLU2ltcGxlQ29uZmlnIGNvbmZpZyhsb2NrTG9jYXRpb24pOworICBj
b25maWcud3JpdGVFbnRyeSgicGlkIiwgLTEpOworICBjb25maWcuc3luYygpOwogICAvLyB0cnkg
dG8gY2xlYW51cCBhbGwgd2luZG93cwogICBpZiAoa21rZXJuZWwpIGtta2VybmVsLT5kdW1wRGVh
ZExldHRlcnMoKTsKICAgLy8gUmV0dXJuIHRvIERyS29ucWkuCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>