Skip to content

Commit 3fab3a0

Browse files
committed
Fix last commit; support running from extracted appimage
1 parent 3ee17d0 commit 3fab3a0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/AppRun

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
#!/bin/bash
22

33
# https://docs.appimage.org/packaging-guide/environment-variables.html#id2
4-
5-
APPIMAGE_ROOT="$APPDIR"
6-
74
unset APPDIR
85
unset APPIMAGE
96
unset OWD
107
unset ARGV0
118

9+
APPIMAGE_ROOT="$(dirname "$(readlink -f "$0")")"
10+
1211
VERSION=$(readlink "$APPIMAGE_ROOT/bin/emacs" | sed -e 's/emacs-//')
1312

1413
export EMACSLOADPATH="$APPIMAGE_ROOT/share/emacs/$VERSION/lisp"

0 commit comments

Comments
 (0)