From 5301fbca891b7a2dc53d6edb0490700be11d68b6 Mon Sep 17 00:00:00 2001 From: Roy <88516395+moraroy@users.noreply.github.com> Date: Sun, 5 May 2024 18:15:24 -0700 Subject: [PATCH] Update NonSteamLaunchers.sh --- NonSteamLaunchers.sh | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/NonSteamLaunchers.sh b/NonSteamLaunchers.sh index 82eb31f..7127fef 100755 --- a/NonSteamLaunchers.sh +++ b/NonSteamLaunchers.sh @@ -65,20 +65,20 @@ for arg in "${args[@]}"; do # Check if the user wants to install Chrome if $installchrome; then - # Check if Google Chrome is already installed - if flatpak list | grep com.google.Chrome &> /dev/null; then - echo "Google Chrome is already installed" + # Check if Google Chrome is already installed for the current user + if flatpak list --user | grep com.google.Chrome &> /dev/null; then + echo "Google Chrome is already installed for the current user" flatpak --user override --filesystem=/run/udev:ro com.google.Chrome else - # Check if the Flathub repository exists - if flatpak remote-list | grep flathub &> /dev/null; then - echo "Flathub repository exists" + # Check if the Flathub repository exists for the current user + if flatpak remote-list --user | grep flathub &> /dev/null; then + echo "Flathub repository exists for the current user" else - # Add the Flathub repository - flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo + # Add the Flathub repository for the current user + flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo fi - # Install Google Chrome + # Install Google Chrome for the current user flatpak install --user flathub com.google.Chrome -y # Run the flatpak --user override command @@ -88,6 +88,7 @@ fi + if [ "${deckyplugin}" = false ]; then #Download Modules # Define the repository and the folders to clone