Always run flatpak with --user

This commit is contained in:
Anthony Rose 2024-10-11 08:15:07 +01:00
parent 0eb038b8e8
commit 8b83057e59

View file

@ -233,6 +233,12 @@ then
alias dnf="dnf --cacheonly --nogpgcheck" alias dnf="dnf --cacheonly --nogpgcheck"
fi 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). # Old RHEL releases still have the original yum (not DNF).
if [ -x /usr/bin/yum ] && [ ! -x /usr/bin/dnf ] if [ -x /usr/bin/yum ] && [ ! -x /usr/bin/dnf ]
then then