[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-linux
Subject: Re: [kde-linux] ~/.xexitrc?!?
From: James Richard Tyrer <tyrerj () acm ! org>
Date: 2002-05-12 3:04:24
[Download RAW message or body]
tux the turtle wrote:
> Hi out there;
> has anyone any idea where to put stuff that should be executed when the user
> exits? Anything like ~/.xinitrc or ~/..profile?
> Thanx...
Do you want to run something when you exit from your X session, or when
you exit KDM?
When an X session ends, control is returned to the "Xsession" script if
you didn't start kde with: "exec startkde". Or, more properly, XDM runs
a script called: "Xreset" at the end of an X session. KDM will also do
this but the current version needs to be set up to do it. Add the line:
Reset=/usr/kde3/share/config/kdm/Xreset
or something similar if your path is different in the:
[X-*-Core]
section.
This script can then source a file: "~/.xreset" for each user if you
want.
Xreset
--------------------------------
#!/bin/bash
. $HOME/.xreset
--------------------------------
Note the "." or use the word: "source".
If you need to run something at the end of your KDM session, this
presents a problem since the KDM session does not actually end, it is
killed by the halt (or reboot) command.
--
JRT
___________________________________________________
This message is from the kde-linux mailing list.
Account management: http://mail.kde.org/mailman/listinfo/kde-linux.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic