summary refs log tree commit diff
path: root/pkgs/build-support/appimage
diff options
context:
space:
mode:
authorGuillaume Girol <symphorien@users.noreply.github.com>2022-12-02 20:12:49 +0000
committerGitHub <noreply@github.com>2022-12-02 20:12:49 +0000
commitc1c69986845fe7223389f44004719f9aa22e148e (patch)
tree449e8ac029b4067accb0a90ca3002a43ed930e81 /pkgs/build-support/appimage
parentdc53520e2839f527e58911fbd256e038173f0992 (diff)
parentc0cdf0ad4bac64d96bd7c581878d4507c53234c8 (diff)
Merge pull request #203598 from symphorien/appimage-owd
appimage-run: export OWD
Diffstat (limited to 'pkgs/build-support/appimage')
-rwxr-xr-xpkgs/build-support/appimage/appimage-exec.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/build-support/appimage/appimage-exec.sh b/pkgs/build-support/appimage/appimage-exec.sh
index 4ff6802e64534..b91d13c4a2356 100755
--- a/pkgs/build-support/appimage/appimage-exec.sh
+++ b/pkgs/build-support/appimage/appimage-exec.sh
@@ -7,6 +7,9 @@ fi
 
 PATH="@path@:$PATH"
 apprun_opt=true
+OWD=$(readlink -f .)
+# can be read by appimages: https://docs.appimage.org/packaging-guide/environment-variables.html
+export OWD
 
 # src : AppImage
 # dest : let's unpack() create the directory