Re: dot bash_logout
Johannes Altmanninger <[email protected]> Mon, 05 Jan 2015 16:40:54 +0100
| Newsgroups | gmane.comp.window-managers.ratpoison.devel |
|---|---|
| Message-ID | <[email protected]> |
Dieter Van Eessen <[email protected]> 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 _______________________________________________ Ratpoison-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/ratpoison-devel
signature.asc
(application/pgp-signature, 472 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJUqrCGAAoJEB/vnlbzUFSGfmcIAKACPkRRfvmkRnlFHQbM83aL YR5CQ0pDRHpcOqiVnsCW6IJKnJV87AHR02xJqxfg60Z6Smalvr5NdVXqziFl6h4H 9D8tHOMuN1+N5d/+EFTD18Nzf6JnSk/fcP1A6Y3nPxM+v9CipUVRiMX4Z3scFVH7 HDESl+v4OVq8gCZn79k/ym3/v3vJsRNJMKF9vtQEkArbHf9mkcLVXedXg2MeCePB 7M/PTTjrq765cG0UjyFZsaQo+NIePAGpiXWD0NgvmueqtwGk3db9hTzZyLS/bbWd C8HuU+MmBvCjGLqxwMnFfx9ItEB/vF2LsVaMpHpy6wcfuLgJAjgaK+dGmJ1+D8k= =9tP1 -----END PGP SIGNATURE-----