Running commands on logout from KDE
James Richard Tyrer
tyrerj at acm.org
Sun May 19 23:03:07 BST 2002
AE Roy wrote:
>
> When I use the logout button to log out from KDE2.2.2, I need to be able
> to run some spesific command.
>
> If I logout from a shell, then I would put those commands in the file
> .bash_logout. But when using the KDE-logout button, that file is not
> used. In what file should I put these commands so that I can run
> spesific commands when I logout with the KDE-logoutbutton?
>
You need to use the script: "$KDEDIR/share/config/kdm/Xreset"
If your installation does not have such a script, then you need to first
configure KDM to use it.
In "kdmrc" under the:
[X-*-Core]
tag, edit/add:
Reset=/usr/kde3/share/config/kdm/Xreset
Then it will run the script at the end of each X session.
This is the global script and like other global scripts, you can have it
source a local script from the user's home directory:
. $HOME/.Xreset
--
JRT
___________________________________________________
This message is from the kde mailing list.
Account management: http://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.
More information about the kde
mailing list