Skip to content

Conversation

@thatjames
Copy link

@thatjames thatjames commented Jan 2, 2026

The following check

if [[ -x '/usr/bin/betterlockscreen' ]]; then
  betterlockscreen -l
elif [[ -x '/usr/bin/i3lock' ]]; then
  i3lock
fi

is not portable. For example, this check fails on nixos due to the way nix symlinks binaries.

command is the POSIX compliant manner to test for binaries. This fixes the issue I have with my nixos build, and should make it easier for newcomers to work with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant