PDA

View Full Version : [ubuntu] Start a script after gnome login



saltydog
November 21st, 2008, 12:34 PM
Hi,

in my customized LiveCD, I need a script to be run soon after gnome login.
Whre should I set it (from the chrooted terminal) in order to get it run after each gdm login?

Thanks

Afkpuz
November 22nd, 2008, 08:19 AM
I don't know how to run a script that needs root privileges, but here's how to execute a regular bash script at each login. You can save it anywhere really.

System>Preferences>Sessions

Click add, then point to your script. Simple as that. You can also use this to open programs at start up.

saltydog
November 22nd, 2008, 09:10 AM
Afkpuz,

thank you. I was well aware of that. But as I am working on a chrooted terminal, I don't have GUI access.

eHalcyon
June 28th, 2011, 09:51 PM
Edit: Sorry, I meant to post a reply in a different (but somewhat related) thread (http://ubuntuforums.org/showthread.php?p=10987874)!