kde shutdown script is not executed

Bug #1241870 reported by Soos Gergely
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kde-workspace (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

For many years I have been using azureus to download torrents. Azureus needs a graceful shutdown and I've been using a shutdown script for that since kde3. The problem is that with kubuntu 13.04 the script is not called even though System Settings seem to set it up correctly (it creates a symlink to my script into .kde/shutdown).
However to debug this problem there is no need to hassle with azureus. Just screate a script containing for example:
eject
sleep 10
or whatever you notice if it's happening or not, then go to system settings/startup and shutdown/autostart, press "add script", then add your file and finally set "run on"to shutdown.
What I experience on my computer is that nothing happens on shutdown or restart, however the script is executed correctly on logout.
I have another computer which (for reasons that have nothing to do with this bug) still runs kubuntu 12.04, on that computer my script is executed on shutdown and restart too. I would really need that functionality because not only I loose data in azureus (for example seed time/upload on private trackers) but sometimes I would like to do other stuff too on shutdown.

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: kde-workspace-bin 4:4.10.5-0ubuntu0.2
ProcVersionSignature: Ubuntu 3.8.0-31.46-generic 3.8.13.8
Uname: Linux 3.8.0-31-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.9.2-0ubuntu8.3
Architecture: amd64
Date: Sat Oct 19 01:56:23 2013
InstallationDate: Installed on 2013-10-03 (15 days ago)
InstallationMedia: Kubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
MarkForUpload: True
SourcePackage: kde-workspace
UpgradeStatus: Upgraded to raring on 2013-10-17 (1 days ago)

Revision history for this message
Soos Gergely (sogerc1) wrote :
Revision history for this message
Harald Sitter (apachelogger) wrote :

Please note that the linked file must be exectuable (+x).

Changed in kde-workspace (Ubuntu):
status: New → Invalid
Revision history for this message
Soos Gergely (sogerc1) wrote :

Like I said, I've been using kde shutdown scripts since kde3, I know that they have to be executable, and it is.

Revision history for this message
Harald Sitter (apachelogger) wrote :

May be that communication between kde-workspace and lightdm is off such that latter will not wait for the session to terminate but simply kill it when it gets the shutdown instruction (which is sent before the scripts are run). Please report your bug at bugs.kde.org so the KDE developers can take a look.

Revision history for this message
Soos Gergely (sogerc1) wrote :

Goog call, that's probably what's happening. I've replaced lightdm with kdm and the problem is gone. I prefer kdm anyway. Thank you for your prompt help.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.