Skip to content
Snippets Groups Projects
Commit 98fead66 authored by probonopd's avatar probonopd Committed by GitHub
Browse files

Update desktopintegration

parent f118b004
No related branches found
No related tags found
No related merge requests found
...@@ -129,17 +129,8 @@ if [ -z "$APPIMAGE" ] ; then ...@@ -129,17 +129,8 @@ if [ -z "$APPIMAGE" ] ; then
# Not running from within an AppImage; hence using the AppRun for Exec= # Not running from within an AppImage; hence using the AppRun for Exec=
fi fi
# Construct path to the icon according to
# http://specifications.freedesktop.org/thumbnail-spec/thumbnail-spec-latest.html
ABS_APPIMAGE=$(readlink -e "$APPIMAGE") ABS_APPIMAGE=$(readlink -e "$APPIMAGE")
ICONURL="file://$ABS_APPIMAGE" ICONFILE="$APPDIR/.DirIcon"
MD5=$(echo -n $ICONURL | md5sum | cut -c -32)
ICONFILE="$HOME/.cache/thumbnails/normal/$MD5.png"
if [ ! -f "$ICONFILE" ] ; then
echo "$ICONFILE is missing. Probably not running ${THIS} from within an AppImage."
echo "Hence falling back to using .DirIcon"
ICONFILE="$APPDIR/.DirIcon"
fi
# $XDG_DATA_DIRS contains the default paths /usr/local/share:/usr/share # $XDG_DATA_DIRS contains the default paths /usr/local/share:/usr/share
# desktop file has to be installed in an applications subdirectory # desktop file has to be installed in an applications subdirectory
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment