You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to setup xautolock with slimlock as locker. Using slimlock directly as services.xserver.xautolock.locker does not preserve SLIM_CFGFILE and SLIM_THEMESDIR environment variables so slimlock uses default slim theme.
There is workaround to start slimlock via xss-lock triggered by loginctl lock-session but here is what i get:
Aug 23 16:26:08 localhost xautolock[27959]: Failed to issue method call: Caller does not belong to any known session
Seems that loginctl lock-session wants $XDG_SESSION_ID (systemd/systemd#6032) but xautolock process does not have it.
Adding $XDG_SESSION_ID here may be a fix for this.
# a list of nixpkgs attributes affected by the problemattribute:
- services.xserver.xautolock.locker# a list of nixos modules affected by the problemmodule:
- services.xserver.displayManager
- services.xserver.xautolock
The text was updated successfully, but these errors were encountered:
I'm trying to setup
xautolock
withslimlock
as locker. Usingslimlock
directly asservices.xserver.xautolock.locker
does not preserveSLIM_CFGFILE
andSLIM_THEMESDIR
environment variables soslimlock
uses default slim theme.There is workaround to start
slimlock
viaxss-lock
triggered byloginctl lock-session
but here is what i get:Seems that
loginctl lock-session
wants$XDG_SESSION_ID
(systemd/systemd#6032) butxautolock
process does not have it.Adding
$XDG_SESSION_ID
here may be a fix for this.nixpkgs/nixos/modules/services/x11/display-managers/default.nix
Line 79 in c6a082b
Here is what home-manager does: https://github.com/rycee/home-manager/blob/eb1b86a5ec7baf1a1ce2c277d568a8751c24a7ee/modules/xsession.nix#L80
Maybe adding some kind of
importedVariables
option is even better.My xserver config:
To Reproduce
Steps to reproduce the behavior:
xss-lock -- slimlock &
loginctl lock-session
to make sure xss-lock is workingjournalctl --user -u xautolock
Expected behavior
slimlock starts with correct theme
Metadata
Maintainer information:
The text was updated successfully, but these errors were encountered: