mirror of
https://github.com/Phantop/appdwarf.git
synced 2025-01-10 06:06:47 +00:00
Handle arguments correctly
Why was this not done already lol
This commit is contained in:
parent
7504c777a7
commit
45c622aa6e
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
HERE=$(dirname $(readlink -f "${0}"))
|
HERE=$(dirname $(readlink -f "${0}"))
|
||||||
export LD_LIBRARY_PATH="${HERE}":$PATH
|
export LD_LIBRARY_PATH="${HERE}":$PATH
|
||||||
wine "${HERE}"/Pine.exe $@
|
wine "${HERE}"/exe "$@"
|
||||||
|
|
2
appdwarf
2
appdwarf
|
@ -16,7 +16,7 @@ dwarf() {
|
||||||
DIR=/tmp/.dwarf_$(basename "$0")$RANDOM
|
DIR=/tmp/.dwarf_$(basename "$0")$RANDOM
|
||||||
mkdir "$DIR" 2> /dev/null
|
mkdir "$DIR" 2> /dev/null
|
||||||
dwarfs -o offset=auto "$0" "$DIR" 2> /dev/null
|
dwarfs -o offset=auto "$0" "$DIR" 2> /dev/null
|
||||||
"$DIR/AppRun" $@
|
"$DIR/AppRun" "$@"
|
||||||
fusermount -uz "$DIR" 2> /dev/null
|
fusermount -uz "$DIR" 2> /dev/null
|
||||||
rmdir "$DIR" 2> /dev/null
|
rmdir "$DIR" 2> /dev/null
|
||||||
exit
|
exit
|
||||||
|
|
Loading…
Reference in a new issue