Skip to content

Commit 57fc502

Browse files
authored
patch Exec= key in photogimp desktop entry to always point to AppImage
1 parent ff1e7b4 commit 57fc502

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

gimp-appimage.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,11 @@ if [ "$ENABLE_PHOTO_GIMP" = 1 ]; then
173173
cp -rv "$CURRENTDIR"/PhotoGIMP/.config/GIMP "$CONFIGDIR"/PhotoGIMP
174174
cp -rvn "$CURRENTDIR"/PhotoGIMP/.local/share/* "$DATADIR"
175175
fi
176+
if [ -n "$APPIMAGE" ]; then
177+
sed -i -e "s|^TryExec=.*|TryExec=$APPIMAGE|g" \
178+
-e "s|^Exec=.*|Exec=env ENABLE_PHOTO_GIMP=1 $APPIMAGE %U|g" \
179+
"$DATADIR"/applications/PhotoGIMP-AppImage.desktop
180+
fi
176181
export GIMP3_DIRECTORY="$CONFIGDIR"/PhotoGIMP/3.0
177182
fi
178183

0 commit comments

Comments
 (0)