We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 923f659 commit 191cee1Copy full SHA for 191cee1
1 file changed
useful-tools/bin/AppRun-generic
@@ -40,6 +40,17 @@ _get_main_bin_name() {
40
41
_get_main_bin_name
42
43
+# Allow users to set env variables for specific AppImage
44
+# This feature only works with the uruntime
45
+if [ "$1" = '--appimage-add-env' ]; then
46
+ shift
47
+ for v do
48
+ echo "$v" >> "$APPIMAGE".env
49
+ >&2 echo "Added '$v' to $APPIMAGE.env"
50
+ done
51
+ exit 0
52
+fi
53
+
54
# additional scripts can be placed in the top level bin dir
55
# those with a name that ends up .hook will be executed in the current shell
56
# those that end with .bg.hook will be executed in the background
0 commit comments