Detecting X at logon

Mikkel L. Ellertson mikkel at infinity-ltd.com
Sun Jan 20 03:10:52 UTC 2008


William Estrada wrote:
> Joe,
> 
>  This is what init 5 is for. Add your programs to /etc/rc.d/rc5.d/.
> Files that start with S are started when entering init 5 level.
> Add something like 'S99My_Stuff'.
> 
There are problems with this. First of all, the OP wanted the 
programs to start when he logged in, not when the system starts. 
Second, this is not the way initscripts should be set up. If you are 
interested, I can point you to the documentation on initscripts.

You are also going to run into problems with X security. The 
programs are not going to be able to connect to the X server when 
started this way. The programs would be trying to run while the 
display manager is running - in other words, while the login screen 
is being displayed. You would want them to run while the window 
manager or desktop is running. (Even programs started by a user's 
cron job can not normally connect to the X server.)

Mikkel
-- 

   Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20080119/9660485d/attachment-0001.sig>


More information about the fedora-list mailing list