-
ha! so i was right, it was being stupid about not being logged into X
Failing all else you could write a script that loads with rc.local and waits until after you login to X to start it (this is a hack, there are better ways, i just have never had an app i wanted starting when linux starts)
-
Dolda2000, thanx man, that worked, and to think it was tha easy and im trying to rewrite files and stuff, hahahaha
-
there has to be a way to do this generically - to start an app after you login to X? .xinitrc didn't do it like i thought it would - any other ideas?
-
ok, i dont know why i am making this so hard - put it in the shell login
.login
.cshrc
.bashrc
whatever your shell uses...
I really dont know why I didn't do this in the first place, i just spent the last 20 minutes reading up on .xsession or .xinitrc files...
-
Are those run when you log in to X?
-
yes, logging in reads the shell startup fiile, because the window manager is actually started by a shell script (this is i believe where it ist, i am going to take some time to lookup exactly how redhat starts X on bootup when i get a chance)
-
But doesn't that mean, on the other hand, that those programs are started every time you start an xterm, too?
-
you know that is why i didn't tell him that the first time around
i did that at work as a shortcut for some of our simulation machines, I also found out why .xsession wasn't working and it's a rather odd mistake, so in theory you could define a
.xinitrc or .xsession file to do it
also kde has a .kde/Autostart folder
( spent 25 minutes today figuring my files were wrong only to discover that the other system guy who works with us created new login because he didnt remember the passwords for our simulation accounts - so he was logged into the machines as controller4 while i was editing the files for ctrl4.... oops )
-
If you have an .xsession file, doesn't that override anything else, ie. not start gnome-session (if you're using gnome). I think that's what I read in GNOME's session files last I read them, at least.
-
i believe so - but you could copy the system xsession file to your directory adn modify it (similar to copying named.conf.sample to named.conf)