Results 1 to 5 of 5

Thread: [SOLVED] Terminal command to Log Out?

  1. #1
    Join Date
    Mar 2006
    Beans
    36

    Question [SOLVED] Terminal command to Log Out?

    I just wrote my first python application and I need it to log the user out. Python can issue OS commands, but I can't find one that does this... I've tried "gnome-session-save --kill" but that brings up a "Log Out of Session" dialog. I need something that kills the session and requires no further confirmation from the user.

    I've also tried "killall gnome-session", but it returns "no process killed". Any advice?

    Thanks!

  2. #2
    Join Date
    Mar 2006
    Beans
    36

    Smile Re: [SOLVED] Terminal command to Log Out?

    Ok, I read the documentation ("man gnome-session-save") and discovered the answer to my own question: you just need to use "--force-logout" instead of "--kill".
    Last edited by scottevan; December 6th, 2008 at 10:54 PM.

  3. #3
    Join Date
    Nov 2009
    Beans
    16

    Re: [SOLVED] Terminal command to Log Out?

    doesn't work in kubuntu.

  4. #4
    Join Date
    Dec 2009
    Beans
    2

    Re: [SOLVED] Terminal command to Log Out?

    Hello,

    I have several public machines where users sometimes connect to server volumes. Instinctively they check off the box that says remember my password. I found a terminal command to make it forget the password, but how do I disable this option all together?

    Thanks.

  5. #5
    Join Date
    Jun 2008
    Beans
    27

    Re: [SOLVED] Terminal command to Log Out?

    try this

    Code:
    gnome-session-save --kill --silent

Tags for this Thread

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
  •