Skip to content

Commit 22e5c1c

Browse files
authored
Merge pull request #189 from develar/patch-1
Fix error if space in the desktop file
2 parents 2d1265c + 0b473ae commit 22e5c1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

desktopintegration

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ check_dep xdg-desktop-menu
166166

167167
DESKTOPFILE=$(find "$APPDIR" -maxdepth 1 -name "*.desktop" | head -n 1)
168168
echo "$DESKTOPFILE"
169-
DESKTOPFILE_NAME=$(basename $DESKTOPFILE)
169+
DESKTOPFILE_NAME=$(basename "${DESKTOP_FILE}")
170170

171171
if [ ! -f "$DESKTOPFILE" ] ; then
172172
echo "Desktop file is missing. Please run ${THIS} from within an AppImage."

0 commit comments

Comments
 (0)