Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a program i want to start when i startx (gkrellm) I don't like having to open after i startx every time. If this is needed I am running enlightenment. Thanx in advance.
Depending on what distro your using which is not specified. If your using something like Redhat, it can go in your .Xsession file like acid stated, if something like Slackware which doesn't use that file, I believe it can go in your .xinitrc file.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771
Rep:
Quote:
Originally posted by trickykid Depending on what distro your using which is not specified. If your using something like Redhat, it can go in your .Xsession file like acid stated, if something like Slackware which doesn't use that file, I believe it can go in your .xinitrc file.
Hmm.. as per my understanding, the shell script called 'startx' when called from runlevel 3 checks for ~/.xinitrc, ~/.xserverrc and their systemwide versions, choosing the local versions if both exist and pass it to xinit, which calls X, the server. When ~/.xinitrc ( assuming you have one ) ends, your X session ends, and the X server gets terminated. This behaviour is seen across all distros I've seen that use the XFree86 server. You've chosen the perfect distros for me here, since I use both of those.
The ~/.xsession files are for those folks who boot into runlevel 5 and use XDM for their X session manager. When a user logs in successfully, ~/.xsession gets run and their session persists as long as .xsession lasts. The server continues to run even after they logout though. Again, some distros use GDM/KDM as their display managers and as far as I've seen, these variants do not care for ~/.xsession.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.