Gentoo Archives: gentoo-user

From: David Haller <gentoo@×××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: escape from i3lock
Date: Fri, 12 Jul 2019 00:11:51
Message-Id: 20190712001135.g7ziilwhkxoo7slx@grusum.endjinn.de
In Reply to: Re: [gentoo-user] Re: escape from i3lock by Laurence Perkins
1 Hello,
2
3 On Thu, 11 Jul 2019, Laurence Perkins wrote:
4 >You could also leave DontVTSwitch on all the time and set a keyboard
5 >shortcut to run chvt (man 1 chvt) with appropriate permissions and
6 >parameters instead. Keyboard shortcuts shouldn't get processed if the
7 >screen is locked.
8
9 The screensaver has to get _and keep_ the lock on input.
10
11 The sad thing is, people do needless rewrites and get it wrong again
12 and again and again, despite jwz' xscreensaver code from 1991 on,
13 setting an example on how to do it right... Cue gnome-screensaver, the
14 kde stuff, apparently also i3lock etc.pp. ad nauseam, all repeating
15 the very bugs jwz wrote about in 2004 (the toolkits.html)...
16
17 VT Switching is just a little subclass of the underlying problems of
18 those "lock screen" programs that don't lock your screen.
19
20 ==== https://www.jwz.org/xscreensaver/toolkits.html / Epilogue ====
21 I wrote this document in 2004, explaining the approach to privilege
22 separation that xscreensaver has taken since 1991. Of course, the
23 people doing needless rewrites of xscreensaver have ignored it for
24 that whole time, and have then gone on to introduce exactly the bug
25 that I described in this document as a hypothetical strawman! And --
26 this would be hilarious if it weren't so sad -- have introduced it
27 multiple times. As I said in 2015:
28
29 If you are not running xscreensaver on Linux, then it is safe to
30 assume that your screen does not lock. Once is happenstance. Twice
31 is coincidence. Three times is enemy action. Four times is
32 Official GNOME Policy.
33 ====
34 (read the whole thing linked document!). Also:
35
36 https://www.jwz.org/xscreensaver/man1.html#8
37 https://www.jwz.org/blog/2014/04/the-awful-thing-about-getting-it-right-the-first-time-is-that-nobody-realizes-how-hard-it-was/
38 https://www.jwz.org/blog/2015/04/i-told-you-so-again/
39 (also follow the "previous" links ;)
40
41 So the solution is to just use "xscreensaver" by jwz. Which can be
42 configured to just blank the screen etc. as wanted by the op. See also
43 the FAQ: https://www.jwz.org/xscreensaver/faq.html
44
45 HTH,
46 -dnh
47
48 --
49 "Humans need fantasy .. to *be* human" -- Death (in Hogfather)

Replies

Subject Author
Re: [gentoo-user] Re: escape from i3lock Laurence Perkins <lperkins@×××××××.net>