<?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>337667</bug_id>
          
          <creation_ts>2014-07-21 14:17:44 +0000</creation_ts>
          <short_desc>autostart sequence fails to finish with offending program, prevents logout/shutdown/reboot</short_desc>
          <delta_ts>2018-11-12 16:18:24 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>kdelibs</product>
          <component>kdeinit</component>
          <version>4.11.5</version>
          <rep_platform>Debian unstable</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</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>0</everconfirmed>
          <reporter name="Felipe Sateler">fsateler</reporter>
          <assigned_to name="kdelibs bugs">kdelibs-bugs-null</assigned_to>
          <cc>andrew.crouthamel</cc>
    
    <cc>fsateler</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1462113</commentid>
    <comment_count>0</comment_count>
      <attachid>87858</attachid>
    <who name="Felipe Sateler">fsateler</who>
    <bug_when>2014-07-21 14:17:44 +0000</bug_when>
    <thetext>Created attachment 87858
Script that hangs autostart

This was originally filed as debian bug 753610[1], and comments posted on bugs #327543 and #328571. Repeating the information I provided since this bug appears to be different from those already reported.

The first comment I posted here was:

-- First message

I cannot logout, reboot or shut down the computer from the &quot;Leave&quot; menu. The confirmation pop-up never appears.

I have discovered that ksmserver does not respond to the org.kde.KSMServerInterface.logout dbus method.

Also, KDE does not appear to be starting the programs configured to autostart on login (not sure  if related, but since both are session related...).

I have been unable to find any logs that might be related. xsession-errors does not say anything, nor does the X log or the systemd journal.

I&apos;m using systemd 208. PolicyKit issues are not likely, because I can issue systemctl poweroff as my own user just fine.

I did test with a test user, and I can logout with that user. This suggests that I have some sort of misconfiguration that confuses kde.

-- End First message

And then further investigation revealed that:

-- Second Message

It seems that the problem for me is autostarting a certain type of application.

I have configured for autostart 3 applications: pasystray, arbtt and a custom python script. As long as I don&apos;t activate my custom python script, all seems to be well.

My custom script is very short. All it does is define a function, and hook it up to the org.freedesktop.ScreenSaver.ActiveChanged signal.

Given the information on this bug [#327543], I tried both glib and QT mainloops. Both hanged the autostart sequence, and prevented the exit dialogs from appearing.

Disabling the offending application seems to unbreak kde, even without QT_NO_GLIB.

-- End Second Message


If more information is required, or more testing needed, please do not hesitate to request it.

Please find attached the script that hangs the autostart sequence.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=753610</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1812878</commentid>
    <comment_count>1</comment_count>
    <who name="Andrew Crouthamel">andrew.crouthamel</who>
    <bug_when>2018-11-12 02:55:34 +0000</bug_when>
    <thetext>Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1813175</commentid>
    <comment_count>2</comment_count>
    <who name="Felipe Sateler">fsateler</who>
    <bug_when>2018-11-12 13:55:18 +0000</bug_when>
    <thetext>Hi,

I&apos;m no longer using KDE, so I&apos;m afraid I cannot verify if this bug is still present. 

Please close this bug.

Saludos</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1813321</commentid>
    <comment_count>3</comment_count>
    <who name="Andrew Crouthamel">andrew.crouthamel</who>
    <bug_when>2018-11-12 16:18:24 +0000</bug_when>
    <thetext>Thanks for the update!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>87858</attachid>
            <date>2014-07-21 14:17:44 +0000</date>
            <delta_ts>2014-07-21 14:17:44 +0000</delta_ts>
            <desc>Script that hangs autostart</desc>
            <filename>drop-keys-on-lock</filename>
            <type>text/x-python</type>
            <size>794</size>
            <attacher name="Felipe Sateler">fsateler</attacher>
            
              <data encoding="base64">IyEvdXNyL2Jpbi9lbnYgcHl0aG9uCiMgY29kaW5nOiB1dGYtOAojIHZpbTogc2V0IGV0IHN3PTI6
Cgpmcm9tIF9fZnV0dXJlX18gaW1wb3J0IHByaW50X2Z1bmN0aW9uCmltcG9ydCBkYnVzCmZyb20g
ZGJ1cy5tYWlubG9vcC5xdCBpbXBvcnQgREJ1c1F0TWFpbkxvb3AKZnJvbSBQeVF0NCBpbXBvcnQg
UXRDb3JlCiNpbXBvcnQgZGJ1cy5nbGliCiNpbXBvcnQgZ29iamVjdAppbXBvcnQgc3VicHJvY2Vz
cwppbXBvcnQgc3lzCgpkZWYgc2NyZWVuc2F2ZXJfY2hhbmdlZChzdGF0ZSk6CiAgICAiIiJUaGlz
IG1ldGhvZCBpcyBjYWxsZWQgd2hlbiB0aGUgc2NyZWVuc2F2ZXIgc3RhcnRzL3N0b3BzICIiIgoK
ICAgIHByaW50KCJTdGF0ZSBpcyBub3ciLCBzdGF0ZSkKICAgIHRyeToKICAgICAgICAjIGlmIHNj
cmVlbnNhdmVyIGJlY29tZXMgYWN0aXZlCiAgICAgICAgaWYgc3RhdGUgPT0gMToKICAgICAgICAg
ICAgc3VicHJvY2Vzcy5jYWxsKFsic3NoLWFkZCIsICItRCJdKQogICAgZXhjZXB0IEV4Y2VwdGlv
biBhcyBlOgogICAgICAgIHByaW50KCJFcnJvcjoiLCBlLm1lc3NhZ2UpCgpEQnV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