Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tlug: Auto Startup



>>In article <3583B560.B6379B9A@example.com>, "Alan B. Stone" <stoneab@example.com> writes:

> Would I be really messing up something if I added the following to the
> .bashrc file?

> exec xinit

> if [-f /tmp/.X0-lock]; then
> 	rm /tmp/.X0-lock
> fi

I think anything after the "exec" is just so much comments.

The lock file should be removed automatically when X exits.  You
probably want this (warning -- untested!) at the end of .bashrc:

if [ \! -f /tmp/.X0-lock ]; then
        xinit
fi

Or maybe without the \! at the end of .bash_login.  I'm not sure what
order the various pieces are read.  Throw in some echoes and verify it.

-- 
            ... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
     Felix Finch: scarecrow repairman & rocket surgeon / felix@example.com
  PGP = 91 B3 94 7C E9 E8 76 2D   E1 63 51 AA A0 48 89 2F  ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o
--------------------------------------------------------------
Next Nomikai: 17 July, 19:30 Tengu TokyoEkiMae 03-3275-3691
Next Meeting: 8 August, Tokyo Station Yaesu central gate 12:30
*** 20 June: TLUG will be at the Tokyo Linux Fair
http://tlug.linux.or.jp/projects/linux-fair/fair.html
--------------------------------------------------------------
Sponsor: PHT, makers of TurboLinux http://www.pht.co.jp


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links