Always run flatpak with --user
This commit is contained in:
parent
0eb038b8e8
commit
8b83057e59
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue