diff --git a/roles/home-cli/files/profile b/roles/home-cli/files/profile index 98a8f37..7968eb6 100644 --- a/roles/home-cli/files/profile +++ b/roles/home-cli/files/profile @@ -233,6 +233,12 @@ then alias dnf="dnf --cacheonly --nogpgcheck" fi +# Use user-mode Flatpak by default. +if [ "$(id -u)" -ne 0 ] && [ -x /usr/bin/flatpak ] +then + alias flatpak="flatpak --user" +fi + # Old RHEL releases still have the original yum (not DNF). if [ -x /usr/bin/yum ] && [ ! -x /usr/bin/dnf ] then