Re: [gdm-list] Can i execute a script after logout



Renju:

I want to execute a script after logout . I included the stuff in Default file under PostSession
directory, but it doesn't work. How can i do this?

You don't explain how it "doesn't work".  Does it not seem to run your
script, or fail in some other way?  Please provide more information to
help diagnose questions you have.  Are there any error messages?  Did
you check log files for error messages (/var/log/gdm, /var/lib/log/gdm,
$HOME/.xsession-errors, /var/log/Xorg.log, syslog, etc.)?

Using PostSession is the correct way.  There are other ways you could
get the same behavior (such as via a custom PAM module), but PostSession
should work.

You might try putting something simple in the PostSession script like
"echo test > /tmp/test.out" to verify that code added to the PostSession
script is being executed.

Also you might try moving the location of where you run your script
in the PostSession script.  I've had some people get confused because it
is possible to add stuff to the script and have it not get executed
because it was put in the wrong location.

Brian



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]