Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU

BLU Discuss list archive


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

RH & X Question



On Sat, Sep 29, 2001 at 01:12:10PM -0400, Derek D. Martin wrote:
>   # don't run startx in the background
>   startx
>   exit
> 
> This way, while the user is in X, the .profile stops executing,
> waiting for startx to exit.  As soon as they log out of their X
> session, the .profile will continue and call the shell exit, which
> should log them out.

Another way to accomplish this would be to replace the startx call
with an exec:

  exec startx

This will cause the login shell to be completely replaced by startx,
which will also have the effect of loging the user out when startx
exits.

-- 
---------------------------------------------------
Derek Martin          |   Unix/Linux geek
ddm at pizzashack.org    |   GnuPG Key ID: 0x81CFE75D
Retrieve my public key at http://pgp.mit.edu

-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org