Click to See Complete Forum and Search --> : xwindows startup config file?


ewinger
07-29-2002, 03:24 PM
Hi.. I hoped I picked the right forum for an xwindows question. I'm rather new to linux & this website.

I'm just wondering if there is a startup config for XWindows (or sawfish which I'm running on top of x) which gets run on Xwindows startup. I wanted to run a couple programs when I log in.

I thought about .bash_profile, but that would only affect my bash sessions.

Eric

ewinger
07-29-2002, 07:17 PM
Found my own answers...

Two ways...

1. In Gnome session management, there is an option to add startup programs.

2. Discovering the glories of /etc/rc2.d & /etc/init.d, adding a script in a similar manner to others, ssh, etc.

The only thing that was tricky was getting my vncserver to start as me. I used a su myname -c "command & options" to try to start my server, but found that running my script before gdm caused xwindows to be started by me not root. My machine was not happy. So we made the symbolic link in rc2.d to be S99vnc and all was well.

fyi

Eric