Re: [dev] [slock] Ctrl+Alt+Backspace Xorg Termination works

From: Pickfire <pickfire_AT_riseup.net>
Date: Tue, 29 Sep 2015 23:04:12 +0800

On Tue, Sep 29, 2015 at 04:59:58PM +0200, Mattias Andrée wrote:
>On Tue, 29 Sep 2015 16:53:26 +0200
>lists <lists_AT_nvsbl.org> wrote:
>
>> by itself this does not provide much more security
>> because you can Ctrl-z in the originating TTY and get a
>> shell prompt ( with bash at least ).
>>
>> --seth
>>
>> > On 28 Sep 2015, at 16:39, Mattias Andrée
>> > <maandree_AT_kth.se> wrote:
>> >
>> > On Mon, 28 Sep 2015 16:32:00 +0200
>> > Hinnerk van Bruinehsen <h.v.bruinehsen_AT_fu-berlin.de>
>> > wrote:
>> >
>> >>> On Sun, Sep 27, 2015 at 09:42:11PM +0800, Pickfire
>> >>> wrote:
>> >>>> On Sun, Sep 27, 2015 at 02:15:02PM +0200, 7heo wrote:
>> >>>> Put
>> >>>>
>> >>>> if ! pgrep xinit >/dev/null; then
>> >>>> start-stop-daemon -S -b startx
>> >>>> clear
>> >>>> exit
>> >>>> fi
>> >>>>
>> >>>> At the end if your ~/.${SHELL}rc file.
>> >>>
>> >>> What do you mean by that? I mean to disable Xorg
>> >>> Termination when using `slock`.
>> >>
>> >> Any kind of wrapper still exposes the terminal in case
>> >> X crashes: e.g. alt+f{whatever terminal startx was run
>> >> in} and ctrl+c ...
>> >
>> > So you should probably have
>> >
>> > alias startx="startx || logout"
>> >
>> > or
>> >
>> > alias startx="startx ; logout"
>> >
>> > in your shell.
>>
>
>How about
>
> alias startx="exec startx"
>

That works. Ctrl+Alt+Backspace fails.

**But** everything in your X server will disappear.

-- 
 _____________________________________
< Do what you like, like what you do. >
 -------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
Received on Tue Sep 29 2015 - 17:04:12 CEST

This archive was generated by hypermail 2.3.0 : Tue Sep 29 2015 - 17:12:16 CEST