From 8b83057e5953a606a5c12e22537b0a4ab115cbcb Mon Sep 17 00:00:00 2001 From: Anthony Rose Date: Fri, 11 Oct 2024 08:15:07 +0100 Subject: [PATCH] Always run flatpak with --user --- roles/home-cli/files/profile | 6 ++++++ 1 file changed, 6 insertions(+) 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