LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Where to run scripts automatically on login/logout (https://www.linuxquestions.org/questions/linux-general-1/where-to-run-scripts-automatically-on-login-logout-142928/)

hilltop*Tech 02-06-2004 06:37 AM

Where to run scripts automatically on login/logout
 
I have a requirement to run a set of scripts automatically upon a GUI login/logout, but don't know hot to accomplish this. I'm using gnome with Ximian as the Window Manager. Any suggestions would be appreciated.

Thanks

wapcaplet 02-06-2004 09:54 AM

If you are running the GUI by typing 'startx' from the console, you ought to be able to put commands into a file in your home directory called .xinitrc. If you're logging in through a graphical login screen though, .xinitrc might be ignored, so it's a little trickier... I think XDM (the default ugly login screen) reads stuff out of ~/.xsession. You may need to google around a bit to find out what to do with KDE (KDM) or Gnome (GDM) login screens. Those may offer some GUI configuration tool for running scripts at startup, I'm not sure.

hilltop*Tech 02-06-2004 10:59 AM

Thanks, I've verified that gdm is what is being started. What I need to do is update the users home directory permissions as soon as they login, but before many of the login scripts begin to run.


All times are GMT -5. The time now is 02:29 PM.