--- profile/flatpak.sh~ 2021-12-11 13:51:49.421878402 +0300 +++ profile/flatpak.sh 2021-12-11 20:07:53.383481380 +0300 @@ -1,11 +1,13 @@ -if command -v flatpak > /dev/null; then +FLATPAK=/usr/bin/flatpak + +if [ -x "$FLATPAK" ]; then # set XDG_DATA_DIRS to include Flatpak installations new_dirs=$( ( unset G_MESSAGES_DEBUG echo "${XDG_DATA_HOME:-"$HOME/.local/share"}/flatpak" - GIO_USE_VFS=local flatpak --installations + GIO_USE_VFS=local "$FLATPAK" --installations ) | ( new_dirs= while read -r install_path