diff --git a/src/appimage/AppRun b/src/appimage/AppRun index cdc9445a..febc7de4 100755 --- a/src/appimage/AppRun +++ b/src/appimage/AppRun @@ -1,27 +1,29 @@ #! /usr/bin/env bash this_dir="$(readlink -f "$(dirname "$0")")" export PATH="${APPDIR}/usr/bin:${PATH}" +export XDG_DATA_DIRS="${APPDIR}/usr/share:${XDG_DATA_DIRS:-/usr/share}:/usr/share" +export XDG_CONFIG_DIRS="${APPDIR}/usr/etc/xdg:${XDG_CONFIG_DIRS:-/etc/xdg}:/etc/xdg" "${this_dir}/usr/bin/kleopatra" "$@" dirmngr=$(gpgconf --list-components | grep ^dirmngr: | cut -d ':' -f 3) if ps -o exe -C dirmngr | grep -q "${dirmngr}"; then echo Shutting down dirmngr gpgconf --kill dirmngr fi scdaemon=$(gpgconf --list-components | grep ^scdaemon: | cut -d ':' -f 3) if ps -o exe -C scdaemon | grep -q "${scdaemon}"; then echo Shutting down scdaemon gpgconf --kill scdaemon fi agent=$(gpgconf --list-components | grep ^gpg-agent: | cut -d ':' -f 3) if ps -o exe -C gpg-agent | grep -q "${agent}"; then echo Shutting down gpg-agent gpgconf --kill all fi echo Goodbye!