Bug 2155220 - xflock4 not working
Summary: xflock4 not working
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: xfce4-session
Version: 37
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-12-20 13:02 UTC by Vilém Maršík
Modified: 2023-03-07 19:43 UTC (History)
2 users (show)

Fixed In Version: xfce4-session-4.18.1-2.fc38
Clone Of:
Environment:
Last Closed: 2023-03-07 19:43:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Vilém Maršík 2022-12-20 13:02:58 UTC
Description of problem:
* "Lock Screen" menu item not working
* "xflock4" command also failing

Version-Release number of selected component (if applicable):
xfce4-session-4.16.0-6.fc37.x86_64

How reproducible:
100%

Steps to Reproduce:
1. "Lock Screen" from menu OR
2. $ xflock4
3.

Actual results:
session not locked
$ xflock4
$ echo $?
1

Expected results:
session locked

Additional info:
It seems "xflock4" tries to run multiple other locking programs, but none is provided by the dependencies of "xfce4-session-4.16.0-6.fc37.x86_64". The only thing found is "xscreensaver", but fails to lock, as it is not running:

$ strace -f xflock4 2>&1 | grep 'stat\|exec'
execve("/usr/bin/xflock4", ["xflock4"], 0x7ffc97326a38 /* 66 vars */) = 0
(...)
newfstatat(AT_FDCWD, "/home/vm/.local/bin/xfce4-screensaver-command", 0x7ffdfd3be160, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/vm/bin/xfce4-screensaver-command", 0x7ffdfd3be160, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/lib64/qt-3.3/bin/xfce4-screensaver-command", 0x7ffdfd3be160, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/lib64/ccache/xfce4-screensaver-command", 0x7ffdfd3be160, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/local/bin/xfce4-screensaver-command", 0x7ffdfd3be160, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/bin/xfce4-screensaver-command", 0x7ffdfd3be160, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/bin/xfce4-screensaver-command", 0x7ffdfd3be160, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/X11R6/bin/xfce4-screensaver-command", 0x7ffdfd3be160, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/games/xfce4-screensaver-command", 0x7ffdfd3be160, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/local/sbin/xfce4-screensaver-command", 0x7ffdfd3be160, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/sbin/xfce4-screensaver-command", 0x7ffdfd3be160, 0) = -1 ENOENT (No such file or directory)
(...)
newfstatat(AT_FDCWD, "/home/vm/.local/bin/xscreensaver-command", 0x7ffdfd3be160, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/vm/bin/xscreensaver-command", 0x7ffdfd3be160, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/lib64/qt-3.3/bin/xscreensaver-command", 0x7ffdfd3be160, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/lib64/ccache/xscreensaver-command", 0x7ffdfd3be160, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/local/bin/xscreensaver-command", 0x7ffdfd3be160, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/bin/xscreensaver-command", {st_mode=S_IFREG|0755, st_size=32720, ...}, 0) = 0
newfstatat(AT_FDCWD, "/usr/bin/xscreensaver-command", {st_mode=S_IFREG|0755, st_size=32720, ...}, 0) = 0
newfstatat(AT_FDCWD, "/usr/bin/xscreensaver-command", {st_mode=S_IFREG|0755, st_size=32720, ...}, 0) = 0
[pid 1496305] execve("/usr/bin/xscreensaver-command", ["xscreensaver-command", "-lock"], 0x55f266754ca0 /* 66 vars */) = 0
(...)
newfstatat(AT_FDCWD, "/home/vm/.local/bin/gnome-screensaver-command", 0x7ffdfd3be160, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/vm/bin/gnome-screensaver-command", 0x7ffdfd3be160, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/lib64/qt-3.3/bin/gnome-screensaver-command", 0x7ffdfd3be160, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/lib64/ccache/gnome-screensaver-command", 0x7ffdfd3be160, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/local/bin/gnome-screensaver-command", 0x7ffdfd3be160, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/bin/gnome-screensaver-command", 0x7ffdfd3be160, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/bin/gnome-screensaver-command", 0x7ffdfd3be160, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/X11R6/bin/gnome-screensaver-command", 0x7ffdfd3be160, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/games/gnome-screensaver-command", 0x7ffdfd3be160, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/local/sbin/gnome-screensaver-command", 0x7ffdfd3be160, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/sbin/gnome-screensaver-command", 0x7ffdfd3be160, 0) = -1 ENOENT (No such file or directory)
(...)
newfstatat(AT_FDCWD, "/home/vm/.local/bin/xlock", 0x7ffdfd3be150, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/vm/bin/xlock", 0x7ffdfd3be150, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/lib64/qt-3.3/bin/xlock", 0x7ffdfd3be150, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/lib64/ccache/xlock", 0x7ffdfd3be150, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/local/bin/xlock", 0x7ffdfd3be150, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/bin/xlock", 0x7ffdfd3be150, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/bin/xlock", 0x7ffdfd3be150, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/X11R6/bin/xlock", 0x7ffdfd3be150, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/games/xlock", 0x7ffdfd3be150, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/local/sbin/xlock", 0x7ffdfd3be150, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/sbin/xlock", 0x7ffdfd3be150, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, ".", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=2380, ...}, 0) = 0
newfstatat(AT_FDCWD, "/home/vm/.local/bin/slock", 0x7ffdfd3be150, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/vm/bin/slock", 0x7ffdfd3be150, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/lib64/qt-3.3/bin/slock", 0x7ffdfd3be150, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/lib64/ccache/slock", 0x7ffdfd3be150, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/local/bin/slock", 0x7ffdfd3be150, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/bin/slock", 0x7ffdfd3be150, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/bin/slock", 0x7ffdfd3be150, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/X11R6/bin/slock", 0x7ffdfd3be150, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/games/slock", 0x7ffdfd3be150, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/local/sbin/slock", 0x7ffdfd3be150, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/sbin/slock", 0x7ffdfd3be150, 0) = -1 ENOENT (No such file or directory)

$ xscreensaver-command -lock
xscreensaver-command: no screensaver is running on display :0.0

Comment 1 Vilém Maršík 2022-12-20 13:06:50 UTC
(easily worked around by installing e.g. xlockmore)

Comment 2 Kevin Fenzi 2022-12-20 23:12:40 UTC
So, it should be using xfce4-screensaver and xfce4-screensaver-command --lock

How did you install? Do you have xfce4-screensaver installed?

Comment 3 Vilém Maršík 2023-01-08 21:19:47 UTC
No xfce4-screensaver installed, nothing seems to depend on it. Not sure how I installed xfce4, possibly by "dnf install xfce4" a longer time ago. Was using Trinity DE instead, until switched to Xfce4 for Trinity being less and less stable in time.

Comment 4 Kevin Fenzi 2023-01-08 22:11:03 UTC
A 'dnf group install xfce-desktop' should pull it in, or install via the live media.

Comment 5 Vilém Maršík 2023-01-10 00:26:55 UTC
Agree, "dnf group install xfce-desktop" tries to install "xfce4-screensaver".

Shouldn't "xfce4-screensaver" be required/suggested by xfce4-session? Currently it is not, and nothing prevents a situation like this, i.e. non-working lock icon/command.

Comment 6 Kevin Fenzi 2023-01-10 03:56:54 UTC
Well, other screen lockers would work too... xscreensaver, etc. 

I suppose we could add a Suggests

Comment 7 Vilém Maršík 2023-01-10 09:25:59 UTC
Yep, "suggests" makes sense.

Comment 8 Kevin Fenzi 2023-03-02 01:54:56 UTC
nonamdotc: since you're doing builds would you be willing to add a Suggests: xfce4-screensaver to xfce4-session?

Comment 9 Mukundan Ragavan 2023-03-02 02:01:53 UTC
oh yes! I will do that.

Comment 10 Fedora Update System 2023-03-02 03:12:31 UTC
FEDORA-2023-f07f5eede6 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-f07f5eede6

Comment 11 Fedora Update System 2023-03-03 02:21:51 UTC
FEDORA-2023-f07f5eede6 has been pushed to the Fedora 38 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-f07f5eede6

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 12 Fedora Update System 2023-03-07 19:43:23 UTC
FEDORA-2023-f07f5eede6 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.