Where should I put a bash script if I want it to be executed once during X startup as part of system bootup. For example, I want to start up VPN on my machine as root user once X starts up.
When X initializes (lets say GDM in my case) or when a user logs in using a DM (desktop manager) is it considered a login shell?
Also I would like to run programs as long as I am logged in using X. For example, I want to run Dropbox as long as I am logged in using Gnome.
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
|
|||
migrated from stackoverflow.com Jun 8 '12 at 14:49
|
Anything you want to run when a user logs into an X session, you want to put in the This page has a pretty good explanation: http://fluxbox.sourceforge.net/docbook/en/html/app-setup.html |
|||
|
|
|
You should put them in
|
|||
|
|
/etc/rc5.d. See this table for the various run levels – karthik Jun 8 '12 at 11:50