ratpoison-devel
[Top][All Lists]
Advanced

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

Re: [RP] dot bash_logout


From: Johannes Altmanninger
Subject: Re: [RP] dot bash_logout
Date: Mon, 05 Jan 2015 16:40:54 +0100
User-agent: Notmuch/0.19 (http://notmuchmail.org) Emacs/24.4.1 (x86_64-unknown-linux-gnu)

Dieter Van Eessen <address@hidden> writes:

>  if [ -z "$DISPLAY"] && [ $(tty) = /dev/tty1 ]; then
>      exec startx
>  fi
...
>
> -Why shutting down the X-server result in logging off? Xserver is 'just a
> program' started when logging in, why don't I return to the tty console
> where I am logged in?

From the exec man page:

If exec is specified with command, it shall replace the shell with com‐
mand without creating a new process.

So if you use 'exec startx', the shell process is replaced by startx,
therefore the .bash_logout is never executed. It should work if you omit
the 'exec'.

Regards,
Johannes

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]