This forum has been archived. All content is frozen. Please use KDE Discuss instead.

re-arrange KDE shutdown order

Tags: None
(comma "," separated)
pendrachken
Registered Member
Posts
1
Karma
0

re-arrange KDE shutdown order

Sun Jun 21, 2009 4:06 am
Hi all, I need some help here.

Heres the the issue I am having:
I have a script for umounting samba shares that I would like to put in ~/.kde/shutdown , The only problem being that the script will hang the KDE shutdown because the script to umount the samba shares is called AFTER KDE kills the session. The shares will be non umountable once KDE kills the running session since knetworkmanager will be shut down when the session ends. Without a route to the samba shares umount hangs even with a -lf ( lazy forced umount), the very reason I want this script to launch on logout. If I forget to umount my shares it will hang init for 2-3 minutes while the system is going down while trying to umount the share without a route.

The script executes perfectly if I launch it from the CLI while still connected to my wireless router. I move around a lot with my laptop so I can't just set it up to connect to my home network through /etc/network/interfaces ( this would be the ideal way to do it if possible, no scripts needed).

So is it possible to change the order that KDE shuts down so .kde/shutdown scripts are run BEFORE the running session is killed? Or some other way to get what I need done automatically before the session is killed on logout / shutdown?

KDE version: 4.2.2
OS: Debian testing 32bit
Hardware: Compaq V5000 laptop, Broadcom b/g wireless
Kernel: 2.6.29.2 custom compile.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

RE: re-arrange KDE shutdown order

Mon Jun 22, 2009 5:14 am
I do not know if this is possible unfortunately. If it is possible you could setup a DBus action which would listen for KSMServer's announcement "The user is logging out". You may be able to do this in System Settings > Input Actions.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar