diff options
author | Basti <mail@sebastian-sellmeier.de> | 2021-06-30 18:45:12 +0200 |
---|---|---|
committer | Sebastian Sellmeier <mail@sebastian-sellmeier.de> | 2021-07-21 01:04:39 +0200 |
commit | 906259dd2bd9661bfac6b47a7308d9e44bb30034 (patch) | |
tree | 6f6d32609072a29bf47384fcaa9368ea2013888d /betterlockscreen | |
parent | 2b31627d594254a5e4580e8dfd7859eb7bc6dbf3 (diff) |
Fixes --lock not working with autodetection when started from zsh, avoids autodetect because of stability issues (#254)
Diffstat (limited to 'betterlockscreen')
-rwxr-xr-x | betterlockscreen | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/betterlockscreen b/betterlockscreen index 7458573..e8c0c57 100755 --- a/betterlockscreen +++ b/betterlockscreen @@ -6,16 +6,6 @@ init_config () { - # resolve i3lock-color binary - i3lockcolor_bin="$(command -v i3lock-color)" - - if [[ (! -e "$i3lockcolor_bin") && (-e "$(command -v i3lock)") ]]; then - i3lockcolor_bin="$(command -v i3lock)" - else - echo "Can not find locker-binary as 'i3lock' or 'i3lock-color', please make sure it is in your \$PATH!" - exit 1 - fi - # default options display_on=0 span_image=false @@ -57,6 +47,10 @@ init_config () { source "$USER_CONF" fi + if [[ ! -v $i3lockcolor_bin ]]; then + i3lockcolor_bin="i3lock-color" + fi + # Please make sure to adjust this before release! VERSION="@VERSION@" |