Skip to content

Commit d4729cf

Browse files
committed
fix: use which instead off app2unit --test
1 parent 82361f0 commit d4729cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Configs/.local/lib/hyde/lockscreen.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ esac
1515
#? This fix the zombie process issue when hyprlock is unlocked but still running.
1616
unit_id=(-u "hyde-lockscreen.scope")
1717

18-
if app2unit.sh --test "${unit_id[@]}" -- "${lockscreen}.sh" "${@}"; then
18+
if which "${lockscreen}.sh" 2>/dev/null 1>&2; then
1919
printf "Executing ${lockscreen} wrapper script : %s\n" "${lockscreen}.sh"
2020
app2unit.sh "${unit_id[@]}" -- "${lockscreen}.sh" "${@}"
2121
else

0 commit comments

Comments
 (0)