diff --git a/NonSteamLaunchers.sh b/NonSteamLaunchers.sh index 9498d52..adb4de7 100755 --- a/NonSteamLaunchers.sh +++ b/NonSteamLaunchers.sh @@ -70,8 +70,13 @@ if $installchrome; then echo "Google Chrome is already installed" flatpak --user override --filesystem=/run/udev:ro com.google.Chrome else - # Install the Flatpak runtime - flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo + # Check if the Flathub repository exists + if flatpak remote-list | grep flathub &> /dev/null; then + echo "Flathub repository exists" + else + # Add the Flathub repository + flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo + fi # Install Google Chrome flatpak install --user flathub com.google.Chrome -y @@ -82,6 +87,7 @@ if $installchrome; then fi + if [ "${deckyplugin}" = false ]; then #Download Modules # Define the repository and the folders to clone @@ -1868,8 +1874,13 @@ if [[ $options == *"Netflix"* ]] || [[ $options == *"Fortnite"* ]] || [[ $option echo "Google Chrome is already installed" flatpak --user override --filesystem=/run/udev:ro com.google.Chrome else - # Install the Flatpak runtime - flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo + # Check if the Flathub repository exists + if flatpak remote-list | grep flathub &> /dev/null; then + echo "Flathub repository exists" + else + # Add the Flathub repository + flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo + fi # Install Google Chrome flatpak install --user flathub com.google.Chrome -y @@ -1880,6 +1891,7 @@ if [[ $options == *"Netflix"* ]] || [[ $options == *"Fortnite"* ]] || [[ $option fi + # wait for Google Chrome to finish wait