Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XFCE session management does not lock screen #146

Closed
Arborescent opened this issue Apr 10, 2021 · 3 comments
Closed

XFCE session management does not lock screen #146

Arborescent opened this issue Apr 10, 2021 · 3 comments

Comments

@Arborescent
Copy link

The lock screen functionality from the XFCE session management plugin does not work.

Environment

Kupfer Version: 0+v320-1
Window Manager: Compton
Desktop Environment: XFCE
Linux Distribution: Ubuntu 21.04

Actual Behaviour

Screen is not locked.

Expected Behaviour

Screen is locked.

@Arborescent
Copy link
Author

Arborescent commented Apr 10, 2021

I was able to correct the problem by modifying kupfer/plugin/session_xfce.py:15

-- LOCKSCREEN_CMD = (["xdg-screensaver", "lock"], )
++ LOCKSCREEN_CMD = (["xflock4"], )

This invokes xflock4 which is the command that locks your session in XFCE 4.

I do have xdg-screensaver installed, executing xdg-screensaver lock results in this:

> xdg-screensaver lock                                                                                                                                                                                           
ERROR: Unknown command 'lock'

@KarolBedkowski
Copy link
Contributor

Not sure, but look like bug in ubuntu's xdg-util version. Debian last version work ok.
xdg-screensaver is more versatile than xflock4, so I don't want change it for now.

KarolBedkowski added a commit to KarolBedkowski/kupfer that referenced this issue Apr 11, 2021
Allow configure custom lock command as "xdg-screensaver lock" may not work
in all cases. XFCE provide xflock4 command that may be used instead.

Fix: kupferlauncher#146
KarolBedkowski added a commit to KarolBedkowski/kupfer that referenced this issue Apr 11, 2021
Allow configure custom lock command as "xdg-screensaver lock" may not work
in all cases. XFCE provide xflock4 command that may be used instead.

Fix: kupferlauncher#146
@Arborescent
Copy link
Author

Making the command configurable sounds like a satisfactory solution, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants