LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 03-05-2003, 05:02 PM   #1
chrismiceli
Member
 
Registered: Aug 2002
Posts: 349

Rep: Reputation: 31
start X


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.
 
Old 03-05-2003, 05:17 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
add the command to /home/yourname/.xsession should load automatically
 
Old 03-05-2003, 06:59 PM   #3
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Quote:
Originally posted by acid_kewpie
add the command to /home/yourname/.xsession should load automatically
startx should be dealing with ~/.xinitrc shouldn't it?
 
Old 03-05-2003, 07:36 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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.
 
Old 03-05-2003, 09:13 PM   #5
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
when i try to start samba pdc's smb service nmbd failed to start . sandeepchau123 Linux - Newbie 2 10-20-2007 01:59 PM
disable cold start and warm start snmp traps chkisco Linux - Newbie 0 10-28-2005 02:58 AM
fc2-gnome : Applications dont start / very slow to start nox104 Linux - Software 0 08-18-2004 08:53 PM
Can I gett KPPP to start when I start a browser on a network machine? duffboygrim Linux - Networking 0 03-25-2004 04:49 PM
cannot start kdeas user ,can start icewm,fluxbox jackren Debian 1 02-29-2004 11:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration