[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#48220] [PATCH] gnu: xfce4-session: Add xset to propagated-inputs.
From: |
Ludovic Courtès |
Subject: |
[bug#48220] [PATCH] gnu: xfce4-session: Add xset to propagated-inputs. |
Date: |
Wed, 05 May 2021 15:23:50 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
Hi Brendan,
Brendan Tildesley <mail@brendan.scot> skribis:
> * gnu/packages/xfce.scm (xfce4-session):[propagated-inputs]: Add xset so
> that xflock4 can turn off the monitor.
Can’t we instead patch ‘scripts/xflock4’ so that it refers to ‘xset’ by
its absolute file name?
However, my understanding is that the xset code is already a fallback:
--8<---------------cut here---------------start------------->8---
# else run another access locking utility, if installed
for lock_cmd in \
"xlock -mode blank" \
"slock"
do
set -- $lock_cmd
if command -v -- $1 >/dev/null 2>&1; then
$lock_cmd >/dev/null 2>&1 &
# turn off display backlight:
xset dpms force off
exit
fi
done
--8<---------------cut here---------------end--------------->8---
Probably we should ensure the first ‘for’ loop works as expected.
Perhaps we need to replace ‘xfce4-screensaver-command’ by its absolute
file name there.
WDYT?
Thanks,
Ludo’.