Skip to content

Commit

Permalink
Bug fix: AppImages and usr/local/share
Browse files Browse the repository at this point in the history
The revised method of creating AppImages changed the "installation"
directory from squashfs-root/usr/local/share to squashfs-root/usr/share.

This commit fixes the change in geeqie-download-appimge.sh
  • Loading branch information
caclark committed Nov 19, 2024
1 parent 167271b commit 7f98faf
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions scripts/geeqie-download-appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
## Downloads will not be made unless the server version is newer than the local file.
##

version="2024-04-14"
version="2024-11-19"
backups=3

show_help()
Expand Down Expand Up @@ -242,11 +242,11 @@ then
cd "$tmp_dir" || exit 1

app=$(find "$HOME/bin/" -name "Geeqie*latest*\.AppImage" -print | sort --reverse | head -1)
$app --appimage-extract "usr/local/share/applications/org.geeqie.Geeqie.desktop" > /dev/null
$app --appimage-extract "usr/local/share/pixmaps/geeqie.png" > /dev/null
xdg-desktop-icon install --novendor "squashfs-root/usr/local/share/applications/org.geeqie.Geeqie.desktop"
xdg-icon-resource install --novendor --size 48 "squashfs-root/usr/local/share/pixmaps/geeqie.png"
xdg-desktop-menu install --novendor "squashfs-root/usr/local/share/applications/org.geeqie.Geeqie.desktop"
$app --appimage-extract "usr/share/applications/org.geeqie.Geeqie.desktop" > /dev/null
$app --appimage-extract "usr/share/pixmaps/geeqie.png" > /dev/null
xdg-desktop-icon install --novendor "squashfs-root/usr/share/applications/org.geeqie.Geeqie.desktop"
xdg-icon-resource install --novendor --size 48 "squashfs-root/usr/share/pixmaps/geeqie.png"
xdg-desktop-menu install --novendor "squashfs-root/usr/share/applications/org.geeqie.Geeqie.desktop"
rm --recursive --force "$tmp_dir"

exit 0
Expand Down Expand Up @@ -322,7 +322,7 @@ then
if [ ! -f "$HOME/.local/share/bash-completion/completions/geeqie" ]
then
mkdir --parents "$HOME/.local/share/bash-completion/completions/"
ln --symbolic "$HOME/bin/Geeqie-latest-x86_64-AppImage/squashfs-root/usr/local/share/bash-completion/completions/geeqie" "$HOME/.local/share/bash-completion/completions/geeqie"
ln --symbolic "$HOME/bin/Geeqie-latest-x86_64-AppImage/squashfs-root/usr/share/bash-completion/completions/geeqie" "$HOME/.local/share/bash-completion/completions/geeqie"
fi

cd ..
Expand Down

0 comments on commit 7f98faf

Please sign in to comment.