You are not logged in.

#1 2013-07-08 08:01:44

Carl Karl
Member
Registered: 2013-06-12
Posts: 231

[solved] how to use slimlock with xfce4 in a clean way?

Hello,

I want to use slimlock with xfce4 and this works, I added

#own modification for slimlock
for lock_cmd in \
  "slimlock" 
  do
    set -- $lock_cmd
    if command -v -- $1 >/dev/null 2>&1; then
        $lock_cmd >/dev/null 2>&1 &
        exit
    fi
done

in row 27 of /usr/bin/xflock4.

The only problem is:
When there is a new version of the package xfce4-session, the /usr/bin/xflock4 file is overwritten and my setting to slimlock is lost!
I tried to change permissions for this file to read only, but that didn't pass my test with sudo pacman -S xfce4-session.

So what is a good, clean way to keep slimlock without having to re-modify /usr/bin/xflock4 every time there is an update of xfce4-session?

Last edited by Carl Karl (2013-07-08 09:41:24)

Offline

#2 2013-07-08 08:47:36

progandy
Member
Registered: 2012-05-17
Posts: 5,202

Re: [solved] how to use slimlock with xfce4 in a clean way?

You have two alternatives: put a modified xflock4 in /usr/local/bin (since /usr/local overrides /usr and is unmanaged) or prepend a userdefined ~/bin to your path (using .profile) and put it there.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#3 2013-07-08 09:40:59

Carl Karl
Member
Registered: 2013-06-12
Posts: 231

Re: [solved] how to use slimlock with xfce4 in a clean way?

Thanks, that worked. :-)
(I used the /usr/local/bin variant.)

Offline

Board footer

Powered by FluxBB