Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 31

Thread: How can I specify a logout script?

  1. #11
    Join Date
    May 2008
    Location
    United Kingdom
    Beans
    4,270
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: manual page for lightdm.conf

    Quote Originally Posted by Lars Noodén View Post
    There is a bug report related to the problem you just solved.

    https://bugs.launchpad.net/ubuntu/+s...m/+bug/1044485

    It might have gone a bit easier if there had been either a manual page for lightdm.conf(5) or an annotated default lightdm.conf.
    Thanks for pointing out the bug. I have added my vote.
    Problems with WINE?
    Full Circle Magazine :: Confused "allot"? :: Cheap Linux stickers
    In my day, we had outdoors in which to run, play, and socialise. Now we have computers to do those.

  2. #12
    Join Date
    Nov 2006
    Beans
    432

    Re: How can I specify a logout script?

    this is weird.
    I just looked at my /etc/lightdm/lightdm.conf file:

    Code:
    [SeatDefaults]
    user-session=ubuntu
    greeter-session=unity-greeter
    note "SeatDefaults", and this is the first time I have opened the file.

  3. #13
    Join Date
    May 2008
    Location
    United Kingdom
    Beans
    4,270
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How can I specify a logout script?

    Quote Originally Posted by s1baker View Post
    note "SeatDefaults", and this is the first time I have opened the file.
    Sorry, my mistake — it is indeed "SeatDefaults". I've corrected my previous post.
    Problems with WINE?
    Full Circle Magazine :: Confused "allot"? :: Cheap Linux stickers
    In my day, we had outdoors in which to run, play, and socialise. Now we have computers to do those.

  4. #14
    Join Date
    May 2008
    Location
    United Kingdom
    Beans
    4,270
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How can I specify a logout script?

    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.
    Problems with WINE?
    Full Circle Magazine :: Confused "allot"? :: Cheap Linux stickers
    In my day, we had outdoors in which to run, play, and socialise. Now we have computers to do those.

  5. #15
    Join Date
    Aug 2005
    Location
    Northern Michigan USA
    Beans
    1,784
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How can I specify a logout script?

    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'

  6. #16
    Join Date
    May 2008
    Location
    United Kingdom
    Beans
    4,270
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How can I specify a logout script?

    Quote Originally Posted by cmcanulty View Post
    I put these aliases in my .bash.rc file…
    Sorry, I don't understand how this helps.
    Problems with WINE?
    Full Circle Magazine :: Confused "allot"? :: Cheap Linux stickers
    In my day, we had outdoors in which to run, play, and socialise. Now we have computers to do those.

  7. #17
    Join Date
    Jan 2013
    Beans
    6

    Re: How can I specify a logout script?

    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.

  8. #18
    Join Date
    May 2008
    Location
    United Kingdom
    Beans
    4,270
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How can I specify a logout script?

    Quote Originally Posted by nezero View Post
    Any solution to this yet?
    Yes and no!

    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.

    Bizarre!

    I wish I knew the answer — how to access the user's bin file before dismounting, whether restarting or just logging out.
    Problems with WINE?
    Full Circle Magazine :: Confused "allot"? :: Cheap Linux stickers
    In my day, we had outdoors in which to run, play, and socialise. Now we have computers to do those.

  9. #19
    Join Date
    Mar 2013
    Beans
    2

    Question Re: How can I specify a logout script?

    Hi,

    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 experimancer; March 8th, 2013 at 06:43 AM. Reason: Added link to the lightdm missing documentation bug

  10. #20
    Join Date
    May 2008
    Location
    United Kingdom
    Beans
    4,270
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How can I specify a logout script?

    Quote Originally Posted by jjaone View Post
    … I, too, added my comments to the relavant bug in Launchpad (https://bugs.launchpad.net/precise-b...ts/+bug/883189).
    Thanks for the link to the bug. I have added both my vote and a comment. (Did you add your vote? The green writing near the top-left of the page.)

    Quote Originally Posted by jjaone View Post
    … I am wondering now where did you actually get the relevant information about the lightdm config options (as in your post #9)?
    Sorry, I don't remember, but I would have searched this forum and, probably, Googled to find other forums. Maybe AskUbuntu helped.

    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.
    Problems with WINE?
    Full Circle Magazine :: Confused "allot"? :: Cheap Linux stickers
    In my day, we had outdoors in which to run, play, and socialise. Now we have computers to do those.

Page 2 of 4 FirstFirst 1234 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •