Skip to content

Commit 0b1f825

Browse files
qurious-pixelTheAssassin
authored andcommitted
Fix mktemp failing to create dir
Fix mktemp failing to create a directory. Addresses #27
1 parent e1d2dfe commit 0b1f825

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

linuxdeploy-plugin-gtk.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,12 @@ APPIMAGE_GTK_THEME="${APPIMAGE_GTK_THEME:-"Adwaita:$GTK_THEME_VARIANT"}" # Allow
185185
# in case we run from an AppImage, we use the $APPDIR environment variable as a template for the temporary directory that should be created
186186
# this allows users to attribute the tempdir to the running AppImage
187187
if [ "$APPDIR" != "" ]; then
188-
tempdir_template="$APPDIR".ld-p-gtk-tmp
188+
tempdir_template="$APPDIR".ld-p-gtk-tmp-XXXXXX
189189
else
190190
tempdir_template=/tmp/.ld-p-gtk-tmp-XXXXXX
191191
fi
192192
193-
CACHEDIR="$(mktemp -d "$tempdir_template")"
193+
export CACHEDIR="$(mktemp -d "$tempdir_template")"
194194
195195
export APPDIR="${APPDIR:-"$(dirname "$(realpath "$0")")"}" # Workaround to run extracted AppImage
196196
export GTK_DATA_PREFIX="$APPDIR"

0 commit comments

Comments
 (0)