From f648f9f7fc71b61675a5bcc6000d6cca3936c2ac Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sat, 12 Jul 2025 13:51:46 +0300 Subject: [PATCH] kate: reduce priority of kwrite under flatpak kate --- bash/usr-local-bin/kate | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bash/usr-local-bin/kate b/bash/usr-local-bin/kate index 28b1e47..d67b5f6 100755 --- a/bash/usr-local-bin/kate +++ b/bash/usr-local-bin/kate @@ -3,22 +3,22 @@ set -x # The usual system-wide installation if [ -f /usr/bin/kate ]; then /usr/bin/kate "$@" -# I might not even need Kate, but am too used to typing it to remember kwrite -elif [ -f /usr/bin/kwrite ]; then - /usr/bin/kwrite "$@" # System-wide flatpak elif [ -f /var/lib/flatpak/exports/bin/org.kde.kate ]; then flatpak run org.kde.kate "$@" # User-specific flatpak elif [ -f ~/.local/share/flatpak/exports/bin/org.kde.kate ]; then flatpak run --user org.kde.kate "$@" +# I might not even need Kate, but am too used to typing it to remember kwrite +elif [ -f /usr/bin/kwrite ]; then + /usr/bin/kwrite "$@" elif [ -f /var/lib/flatpak/exports/bin/org.kde.kwrite ]; then flatpak run org.kde.kwrite "$@" -# User-specific flatpak elif [ -f ~/.local/share/flatpak/exports/bin/org.kde.kwrite ]; then flatpak run --user org.kde.kwrite "$@" # If not found. else printf "kate doesn't seem to be installed :(" + notify-send "kate doesn't seem to be installed :(" fi set +x