Click to See Complete Forum and Search --> : .xinitrc not being executed


rojobull
10-30-2003, 03:25 PM
My system (R.H. 8.0) automatically launches the GUI logon at start up (runlevel 5).

The problem I have is that it doesn't seem to be running /etc/X11/xinit/xinitrc. I do NOT have a .xinitrc nor .Xclients in my home directory, so isn't /etc/X11/xinit/xinitrc supposed to be run automatically?

My understanding is that if the files .xinitrc and .Xclients are not found in the home directory, the xinitrc and Xclients in /etc/X11/xinit/ are supposed to be run, right?

I know that the startx command will launch these scripts if one is in runlevel 3, but are these scripts also run when logging in via the GUI?

I'm trying to add some commands that are run once per X-session, so I thought these files would be the place to do it.

Thanks

Hayl
10-30-2003, 03:48 PM
As far as I know if you are using GDM or KDM, they do not run xinitrc.

rojobull
10-30-2003, 03:54 PM
Ok. That makes sense, but does anyone have an idea of what files are run when KDE, GNOME are started? Or is there a GUI interface with KDE and GNOME to add start-up commands?

Thanks

knute
10-30-2003, 04:17 PM
Both KDE and Gnome have their own systems for starting programs.

They are accessable via a gui, and I believe you can edit them by hand if you know the syntax, and where they are, but it's easier to use the gui.

Don't ask me where, cause it's been years since I've used either. Sorry.

rojobull
10-30-2003, 04:18 PM
Thanks for the info....

asklepios
10-30-2003, 04:24 PM
well in KDE you can symlink the command script to ~/.kde/Autostart.
that will autostart a program/set of commands when you login to KDE. also doesn't it solve your problem if you edit your rc.5 file and run command from there? i don't know abour RH9 but in Slackware you can edit rc.3/rc.4 script to run something at start but then that might not be your idea of fun.

rojobull
10-30-2003, 04:45 PM
I put a shortcut in the ~/.kde/Autostart directory and it works great. Just for kicks, though, I'm going to look through the rc.3, rc.4 and rc.5 for other ways to do this.

Thanks