nwg-piotr / nwg-shell

Installer & meta-package for the nwg-shell project: a GTK3-based shell for sway and Hyprland Wayland compositors
Other
824 stars 14 forks source link

scripts: screenshot: use `/usr/bin/env bash` as interpreter #237

Closed Guanran928 closed 9 months ago

Guanran928 commented 9 months ago

The screenshot script won't work on non FHS environments, for example, NixOS.

~ > tree /usr
 /usr
└──  bin
   └──  env -> /nix/store/bblyj5b3ii8n6v4ra0nb37cmi3lf8rz9-coreutils-9.3/bin/env

~ > tree /bin
 /bin
└──  sh -> /nix/store/x88ivkf7rmrhd5x3cvyv5vh3zqqdnhsk-bash-interactive-5.2-p15/bin/sh

~ > screenshot
exec: Failed to execute process '/home/xxx/.local/bin/screenshot': The file specified the interpreter '/bin/bash', which is not an executable command.
nwg-piotr commented 9 months ago

The script was originally intended for Arch. :smiley: All right.