LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   startup script under X + RH (https://www.linuxquestions.org/questions/linux-general-1/startup-script-under-x-rh-194183/)

mehesque 06-16-2004 09:48 AM

startup script under X + RH
 
I'm having problems on a seemingly simple issue. I want to kick off a script on autologon at runlevel 5.

The autologon is taken care of and not an issue at this point.

I don't want to start a daemon in the background so rc.local and rc5.d aren't that useful to me, so that leaves ~/.xinitrc script.

I'm running RH 3.0 Enterprise.

I have it in the user's home directory and I have the user owning it and the permissions are 777 (just in case).

I have "#!/bin/bash" at the top.

The same works for suse, but it's not working for RH (except I didn't need #!/bin/bash)

Any thoughts?

nukkel 06-16-2004 02:46 PM

Normally, ~/.xinitrc is only used when starting the X server by issuing "startx". If using a display manager ("graphical login"), try ~/.xsession

Some distro's don't take this difference seriously...

mehesque 06-16-2004 05:48 PM

Thanks for your help, that led me in the right direction!!

The way that the .xsession file works is that window manager must be final thing to execute.

So I just made a script chaining a lot of commands together and had that execute before the WM.


All times are GMT -5. The time now is 11:41 PM.