Skip to content

Commit 3ee17d0

Browse files
committed
Unset appimage specific environment variables
1 parent 967220d commit 3ee17d0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

scripts/AppRun

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
#!/bin/bash
22

3-
APPIMAGE_ROOT="$(dirname "$(readlink -f "$0")")"
3+
# https://docs.appimage.org/packaging-guide/environment-variables.html#id2
4+
5+
APPIMAGE_ROOT="$APPDIR"
6+
7+
unset APPDIR
8+
unset APPIMAGE
9+
unset OWD
10+
unset ARGV0
411

512
VERSION=$(readlink "$APPIMAGE_ROOT/bin/emacs" | sed -e 's/emacs-//')
613

0 commit comments

Comments
 (0)