From b2f106fff7a1551e1489055f517eb58ebd6ca3c7 Mon Sep 17 00:00:00 2001 From: Colin Clark Date: Sun, 14 Apr 2024 19:08:56 +0100 Subject: [PATCH] Update AppImage download script for command line completions If the extract option is given, create a symbolic link from $HOME/.local/share/bash-completion to the extracted executable. If this is not done, the command line auto-completion function will not work for AppImages, --- scripts/geeqie-download-appimage.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/scripts/geeqie-download-appimage.sh b/scripts/geeqie-download-appimage.sh index 6ef75bb3..2733c62a 100755 --- a/scripts/geeqie-download-appimage.sh +++ b/scripts/geeqie-download-appimage.sh @@ -29,7 +29,7 @@ ## Downloads will not be made unless the server version is newer than the local file. ## -version="2024-04-11" +version="2024-04-14" backups=3 show_help() @@ -74,6 +74,10 @@ extracted executable. This will take up some disk space, but the extracted executable will run as fast as a packaged release. + +If the extract option is selected, a symbolic link from +\$HOME/.local/share/bash-completion/completions/geeqie +to the extracted executable will be set to enable command line completion. \n\n" } @@ -315,6 +319,12 @@ then printf "\nExtraction complete\n" + 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" + fi + cd .. ln --symbolic --force "./Geeqie$minimal-latest-$architecture-AppImage/squashfs-root/AppRun" geeqie else -- 2.20.1