Skip to content

Commit 4d0f757

Browse files
committed
Cd to home directory before launching
1 parent ea5c4f8 commit 4d0f757

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

scripts/AppRun

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,16 @@ export EMACSDOC="$PWD/share/emacs/$VERSION/etc"
1010
export EMACSPATH="$PWD/libexec/emacs/$VERSION/x86_64-pc-linux-gnu"
1111
export PATH="$PATH:$PWD/bin"
1212

13+
CWD="$PWD"
14+
15+
cd
16+
1317
# check --emacs-appimage-run-as argument
1418
if [ "$1" = "--emacs-appimage-run-as" ]; then
1519
shift
1620
CMD="$1"
1721
shift
18-
exec "./bin/$CMD" "$@"
22+
exec "$CWD/bin/$CMD" "$@"
1923
fi
2024

21-
exec ./bin/emacs "$@"
25+
exec "$CWD/bin/emacs" "$@"

0 commit comments

Comments
 (0)