this is weird.
I just looked at my /etc/lightdm/lightdm.conf file:
note "SeatDefaults", and this is the first time I have opened the file.Code:[SeatDefaults] user-session=ubuntu greeter-session=unity-greeter
I am reopening this thread, because I have a problem.
The session-cleanup-script option is failing, not because it fails to run, but because I am using an encrypted folder.
As soon as I log out, the decrypted folder is dismounted, so the session-cleanup-script cannot run on the decrypted folder.
In other words, session-cleanup-script is run after logging out instead of beforehand.
How can I resolve this problem?
EDIT: I have spotted another thread, and I am asking the question there.
Last edited by Paddy Landau; November 26th, 2012 at 03:16 PM.
I put these aliases in my .bash.rc file
Code:alias lox='xfce4-session-logout --logout' alias log='gnome-session-quit' alias lol='lxsession-logout'
Any solution to this yet? I am also trying to run a script before logout (for a different reason) and would be keen to know if you have found a workaround.
I still do as described in post #9.
However… it works only when restarting. When just logging out (not restarting), it fails.
Debugging shows that when logging out, user's decrypted folder is immediately dismounted, i.e. no longer decrypted. But when restarting, there is a delay, and the user's decrypted folder is left mounted for a while.
I wish I knew the answer — how to access the user's bin file before dismounting, whether restarting or just logging out.
I am trying to solve the same problem; how to run a user specifig logout-script when signing of from X-session in Ubuntu.
I also found out (by accident actually), that lightdm-set-defaults and its configuration file lightdm.conf are the starting point. However, as the lightdm does not have proper documention in my system (12.04.02, Ubuntu Precise Pangolin), I, too, added my comments to the relavant bug in Launchpad (https://bugs.launchpad.net/precise-b...ts/+bug/883189).
While it is not even sure that the possible fix will be backported to Precise, I am wondering now where did you actually get the relevant information about the lightdm config options (as in your post #9)?
Thanks for any information..
Last edited by jjaone; March 8th, 2013 at 06:43 AM. Reason: Added link to the lightdm missing documentation bug
I have more information. The script runs when I log out by restarting the machine, but it does not run when I merely log out without restarting (so, log out and then restart will not run the script). I do not know how to solve that problem.