From ac486b230a1d2245c895193ed162616d3a09f8a8 Mon Sep 17 00:00:00 2001 From: Colin Clark Date: Tue, 2 Apr 2024 14:56:54 +0100 Subject: [PATCH] Command line auto-completion - AppImages - Auto-completion does not work with AppImages. Document a work-around. - Change the format of the completions file to be the same as similar files. --- README.md | 11 +++++++++++ auto-complete/geeqie | 4 +--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a4207256..6d37e304 100644 --- a/README.md +++ b/README.md @@ -137,6 +137,17 @@ There are also options to install desktop icons, menu items, and to revert to ea AppImages have a "portable mode" which is described [here](https://docs.appimage.org/user-guide/portable-mode.html). +**Note:** + +Command line auto-completion does not work with AppImages. If you are using the AppImage `--extract` option, this is a work-around. + +Assuming you have extracted the AppImage to `$HOME/bin/Geeqie-latest-x86_64-AppImage/`, create a symbolic link as follows: + +```sh +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 +``` + ### Installation scripts Geeqie is stable and you may compile the latest version from sources. diff --git a/auto-complete/geeqie b/auto-complete/geeqie index 4dd9b832..44b6a45b 100755 --- a/auto-complete/geeqie +++ b/auto-complete/geeqie @@ -1,4 +1,4 @@ -#!/bin/bash +# bash completion for geeqie -*- shell-script -*- _geeqie() { @@ -7,8 +7,6 @@ _geeqie() if [[ $cur == -* ]] then - # shellcheck disable=SC2207 - # shellcheck disable=SC2016 COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur")) [[ ${COMPREPLY-} == *= ]] && compopt -o nospace return -- 2.20.1