From 45c622aa6e49ca9ed3e580e172dee7161c79d6d2 Mon Sep 17 00:00:00 2001 From: Phantop Date: Wed, 4 Aug 2021 21:27:59 -0400 Subject: [PATCH] Handle arguments correctly Why was this not done already lol --- AppRun.example | 2 +- appdwarf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AppRun.example b/AppRun.example index 398464c..4b9bd0c 100755 --- a/AppRun.example +++ b/AppRun.example @@ -1,4 +1,4 @@ #!/bin/sh HERE=$(dirname $(readlink -f "${0}")) export LD_LIBRARY_PATH="${HERE}":$PATH -wine "${HERE}"/Pine.exe $@ +wine "${HERE}"/exe "$@" diff --git a/appdwarf b/appdwarf index e1c8b47..8157f62 100755 --- a/appdwarf +++ b/appdwarf @@ -16,7 +16,7 @@ dwarf() { DIR=/tmp/.dwarf_$(basename "$0")$RANDOM mkdir "$DIR" 2> /dev/null dwarfs -o offset=auto "$0" "$DIR" 2> /dev/null -"$DIR/AppRun" $@ +"$DIR/AppRun" "$@" fusermount -uz "$DIR" 2> /dev/null rmdir "$DIR" 2> /dev/null exit