[Enhancement] The one screensaver/lock screen entry point (xflock4)
What does xflock4
do?
- Tries to run the command set in the session's xfconf channel.
-
Tries to run
xscreensaver-command
,light-locker-command
,xfce4-screensaver-command
.
Where is it called?
- In
xfce4-session
:Run xflock4 before suspending or hibernating the system
(BTW, it is not true:xfce4_screensaver_lock
tries other options before runningxflock4
.) -
The same for
xfce4-power-manager
(but without a tooltip). -
In
xfce4-panel
. - As a keyboard shortcut.
- In several plugins.
So, in pp. 3-5 it is called directly.
But in in pp. 1, 2, D-Bus-based screensavers are tried first. And then, xflock4
is called (which tries to call xfce4-screensaver-command
and is a fork bomb, among other things). As I understand, xfce4-screensaver
provides a D-Bus-based screensaver entry point. So, xflock
tries to call it one more time.
So: sometimes, xflock4
is a screensaver/lock screen entry point. Sometimes, it's not. Sometimes, it will be recursive.
I have an idea: to have one screensave/lock screen entry point. Maybe in Bash, maybe in C. Which tries (or doesn't try - according to command line/XfConf options) to send relevant DBus messages, run relevant binaries.
Everything will call it. By one line. To one behavior only.
See also / possibly related / possibly will (partially) solve / is solving by:
- https://bugzilla.xfce.org/show_bug.cgi?id=11488,
- https://bugzilla.xfce.org/show_bug.cgi?id=15151,
- https://bugzilla.xfce.org/show_bug.cgi?id=15300,
- https://bugzilla.xfce.org/show_bug.cgi?id=16738,
- #15 (moved) / libxfce4ui#70 (closed),
- #17 (closed),
- #68 (closed),
- #69 (closed),
- #79 (closed),
- #108 (closed),
- #110 (closed),
- #115 (closed),
- #120 (closed),
- #148 (closed),
- #150 (closed),
- #175,
- #178,
- #182 (closed),
- !20 (closed),
- !23 (merged),
- !24 (merged),
- !41 (merged),
- 7c846f57,
- ec4f05ba,
- xfce4-power-manager#5 (closed),
- xfce4-power-manager#7 (closed),
- xfce4-power-manager#12 (closed),
- xfce4-power-manager#19,
- xfce4-power-manager#28 (closed),
- xfce4-power-manager#51 (moved) / libxfce4ui#63 (closed),
- xfce4-power-manager#65,
- xfce4-power-manager#68,
- xfce4-power-manager#71 (closed),
- xfce4-power-manager#81 (closed),
- xfce4-power-manager#83 (closed),
- xfce4-power-manager#84 (closed),
- xfce4-power-manager#113 (closed),
- xfce4-power-manager#127 (moved) / libxfce4ui#64 (closed),
- xfce4-power-manager#142 (closed),
- xfce4-power-manager#153 (closed),
- xfce4-power-manager#187 (closed),
- xfce4-power-manager#202 (closed),
- xfce4-power-manager#209 (closed),
- xfce4-power-manager#210 (closed),
- xfce4-power-manager#248,
- xfce4-power-manager#250 (closed),
- xfce4-power-manager#252 (closed),
- xfce4-power-manager!24 (closed),
- xfce4-power-manager!32 (closed),
- xfce4-power-manager!43 (merged),
- xfce4-power-manager!50 (merged),
- xfce4-power-manager!52 (merged),
- apps/xfce4-screensaver#1 (and many duplicates),
- apps/xfce4-screensaver#12 (closed) (and many duplicates),
- apps/xfce4-screensaver#20 (closed),
- apps/xfce4-screensaver#28 (closed),
- apps/xfce4-screensaver#36 (closed),
- apps/xfce4-screensaver#53,
- apps/xfce4-screensaver#75,
- apps/xfce4-screensaver#78,
- apps/xfce4-screensaver#96,
- apps/xfce4-screensaver#107,
- apps/xfce4-screensaver#111,
- apps/xfce4-screensaver#129,
- apps/xfce4-screensaver#130 (closed),
- apps/xfce4-screensaver#133 (closed),
- apps/xfce4-screensaver#134,
- apps/xfce4-screensaver#138,
- apps/xfce4-screensaver#140 (closed),
- apps/xfce4-screensaver#143 (closed),
- apps/xfce4-screensaver#146,
- apps/xfce4-screensaver#159 (closed) / xfce4-power-manager#251 (closed),
- apps/xfce4-screensaver!21 (merged),
- apps/xfce4-screensaver@b4ede523,
- apps/xfce4-screensaver@9df3ad56,
- xfwm4#541,
- xfwm4#715,
- xfwm4#753,
- libxfce4ui#62 (closed),
- libxfce4ui!97 (merged),
- libxfce4ui!98 (merged),
- libxfce4ui!99 (merged),
- libxfce4ui@a25f036b,
- libxfce4ui@32f76126,
- xfce4-panel#55 (closed),
- xfce4-panel#843 (closed),
- https://forum.xfce.org/viewtopic.php?id=16953,
- https://gitlab.gnome.org/GNOME/gtk/-/issues/3659,
- https://bugs.launchpad.net/ubuntu/+source/xscreensaver/+bug/1858027.