File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -177,14 +177,14 @@ HOOKSDIR="$APPDIR/apprun-hooks"
177
177
HOOKFILE=" $HOOKSDIR /linuxdeploy-plugin-gtk.sh"
178
178
mkdir -p " $HOOKSDIR "
179
179
cat > " $HOOKFILE " << \EOF
180
- #! /bin/bash
180
+ #! /usr/ bin/env bash
181
181
182
182
gsettings get org.gnome.desktop.interface gtk-theme 2> /dev/null | grep -qi "dark" && GTK_THEME_VARIANT="dark" || GTK_THEME_VARIANT="light"
183
183
APPIMAGE_GTK_THEME="${APPIMAGE_GTK_THEME:- " Adwaita:$GTK_THEME_VARIANT " } " # Allow user to override theme (discouraged)
184
184
185
185
# in case we run from an AppImage, we use the $APPDIR environment variable as a template for the temporary directory that should be created
186
186
# this allows users to attribute the tempdir to the running AppImage
187
- if [[ "$APPDIR " != "" ] ]; then
187
+ if [ "$APPDIR " != "" ]; then
188
188
tempdir_template="$APPDIR ".ld-p-gtk-tmp
189
189
else
190
190
tempdir_template=/tmp/.ld-p-gtk-tmp-XXXXXX
You can’t perform that action at this time.
0 commit comments