You are not logged in.
Pages: 1
i installed xtrlock. Works great!
How can i set xfce "Lock" feature to use xtrlock instead of Light Locker?
thx
Last edited by johnywhy (2018-08-05 00:55:20)
arch xfce x86_64
Offline
If you are using xfce4-session 4.13, then:
xfconf-query -c xfce4-session -p /general/LockCommand -s "xtrlock" --create -t string
...assuming "xtrlock" is the actual command. Replace if required.
If earlier version, you'll need to manually edit the xflock4 script to include the option.
Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
i get:
Failed to init libxfconf: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
THX
arch xfce x86_64
Offline
Is xfconfd not running?
ps -ef | grep xfconfd
Also make sure that you are running that command in your user profile, not as root.
Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Is xfconfd not running?
# ps -ef | grep xfconfd
johny 1242 1088 0 14:04 ? 00:00:00 /usr/lib/x86_64-linux-gnu/xfce4/xfconf/xfconfd
root 2050 1983 0 14:06 pts/0 00:00:00 grep --color=auto xfconfd
Also make sure that you are running that command in your user profile, not as root.
failed both ways.
- when run as root, Received the error .
- when run as local user, no error, but the Lock Screen option on Action menu does nothing.
Last edited by johnywhy (2018-08-04 21:10:58)
arch xfce x86_64
Offline
Don't run as root - run command as johny.
What version of xfce4-session?
xfce4-session -V | head -1
Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
ah, i guess that's the issue. I didn't have `xfce4-about` installed, so i wasn't sure how to check version. I guess `xfce4-session -V` gives xfce version, correct?
$ xfce4-session -V | head -1
xfce4-session 4.12.1 (Xfce 4.12)
so i need to edit /usr/bin/xflock? Looking at it, not sure where to put xtrlock.
THX
arch xfce x86_64
Offline
Change this section:
for lock_cmd in \
"xscreensaver-command -lock" \
"gnome-screensaver-command --lock"
do
$lock_cmd >/dev/null 2>&1 && exit
done
...to read:
for lock_cmd in \
"xtrlock" \
"xscreensaver-command -lock" \
"gnome-screensaver-command --lock"
do
$lock_cmd >/dev/null 2>&1 && exit
done
Understand that the file will get overwritten if xfce4-session is ever updated.
Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
the file will get overwritten if xfce4-session is ever updated.
What causes that?
arch xfce x86_64
Offline
The action of updating the xfce4-session package will install all new files from the package. Since xflock4 is a file in the package, it will be overwritten.
Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Another option, to avoid the overwrite, is to create the file /usr/local/bin/xflock4 with the following contents: https://git.xfce.org/xfce/xfce4-session … ts/xflock4 and make the file executable.
It will be executed instead of /usr/bin/xflock4 and it supports the xfconf-query command that you ran in earlier (post #2).
Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
to avoid the overwrite, is to create the file /usr/local/bin/xflock4 with the following contents: https://git.xfce.org/xfce/xfce4-session … ts/xflock4 and make the file executable.
awesome! But does not seem to work
in the file you linked, i assume i replace
"$LOCK_CMD" \
with
"xtrlock" \
correct? (Neither way works.)
any reason i can't just copy the default xflock4 into the local folder, instead of copying the file you linked? (Neither one works.)
THX
Last edited by johnywhy (2018-08-04 22:37:01)
arch xfce x86_64
Offline
in the file you linked, i assume i replace
"$LOCK_CMD" \with
"xtrlock" \correct? (Neither way works.)
No. Leave the file as is.
What is the exact xtrlock command you use? From here, it looks like it is "xtrlock -b".
Can you post back the contents of /usr/bin/xflock4, /usr/local/bin/xflock4 as well as the results of the following:
ls -l /usr/local/bin/xflock4
...and:
xfconf-query -c xfce4-session -p /general/LockCommand
Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
well i'm embarrassed. i was using ...bin/local...
all good
THX
Last edited by johnywhy (2018-08-05 00:55:42)
arch xfce x86_64
Offline
Pages: 1
[ Generated in 0.014 seconds, 7 queries executed - Memory usage: 608.83 KiB (Peak: 625.67 KiB) ]