Re: Running stuff on login and logout
On Sunday 20 October 2002 17:53, Kjetil Kjernsmo wrote:
> Hello list!
Hi again, and sorry to follow up on myself. I've been doing some
digging, and I'm just wondering if people can look at some
Debian-specific details. Besides, this might be interesting for others
too.
> Log in seems easy enough, I guess that putting sfsagent in
> .xsession is the best choice, but where to run sfskey kill from when
> they log out, that's the real problem....
A mechanism for running something at log out is discussed by James
Richard Tyrer in
http://lists.kde.org/?l=kde-linux&m=102117277212023&w=2
It is suggested that you make Xreset run a script in the user's home
directory. I found an Xreset-script in /etc/kde3/kdm. Is this the
script I should modify? It is mentioned in the above post that Xreset
is not run by default, is it run in Debian?
If it is, then adding
source $HOME/.xreset
to /etc/kde3/kdm/Xreset should suffice, shouldn't it?
If it isn't, where should I call it from?
My next concern is that sfskey kill must be run as the user. The above
script would be run as root as it is, wouldn't it? Would I have to do
something like
su --command="source $HOME/.xreset" $USER
?
Should I first check if the file exists, or is that superfluous?
Is this perhaps something that should be included in the distro so that
users may just add an .xreset?
Best,
Kjetil
--
Kjetil Kjernsmo
Astrophysicist/IT Consultant/Skeptic/Ski-orienteer/Orienteer/Mountaineer
kjetil@kjernsmo.net webmaster@skepsis.no editor@learn-orienteering.org
Homepage: http://www.kjetil.kjernsmo.net/
Reply to: