RH & X Question
Derek D. Martin
ddm at pizzashack.org
Sat Sep 29 13:21:37 EDT 2001
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).
More information about the Discuss
mailing list