diff options
author | Timo Kaufmann <timokau@zoho.com> | 2019-03-09 22:11:47 +0100 |
---|---|---|
committer | Timo Kaufmann <timokau@zoho.com> | 2019-04-20 12:32:09 +0200 |
commit | 19e075b53b8283b25dbf60d47f1d6bf35f88ccb4 (patch) | |
tree | a7d771a979c7b5f76f28af40b89d4be80f352c9b | |
parent | 6af25fd1ad751b9aa0338b576cae10f1302cf2b0 (diff) |
appimage-run: pass arguments to appimage
-rw-r--r-- | pkgs/tools/package-management/appimage-run/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/tools/package-management/appimage-run/default.nix b/pkgs/tools/package-management/appimage-run/default.nix index 6f31be56dbed..54abfa89991a 100644 --- a/pkgs/tools/package-management/appimage-run/default.nix +++ b/pkgs/tools/package-management/appimage-run/default.nix @@ -13,10 +13,12 @@ in buildFHSUserEnv (fhsArgs // { if [ $# -eq 0 ]; then echo "Usage: $0 FILE [OPTION...]" echo + echo 'Options are passed on to the appimage.' echo "If you want to execute a custom command in the appimage's environment, set the APPIMAGE_DEBUG_EXEC environment variable." exit 1 fi APPIMAGE="$(realpath "$1")" + shift if [ ! -x "$APPIMAGE" ]; then echo "fatal: $APPIMAGE is not executable" @@ -49,6 +51,6 @@ in buildFHSUserEnv (fhsArgs // { exec "$APPIMAGE_DEBUG_EXEC" fi - exec ./AppRun + exec ./AppRun "$@" ''; }) |