Update NonSteamLaunchers.sh

This commit is contained in:
Roy 2024-05-05 17:34:57 -07:00 committed by GitHub
parent 6dae6b3c61
commit 4f3e1a1cf7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -70,8 +70,13 @@ if $installchrome; then
echo "Google Chrome is already installed" echo "Google Chrome is already installed"
flatpak --user override --filesystem=/run/udev:ro com.google.Chrome flatpak --user override --filesystem=/run/udev:ro com.google.Chrome
else else
# Install the Flatpak runtime # 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 flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
fi
# Install Google Chrome # Install Google Chrome
flatpak install --user flathub com.google.Chrome -y flatpak install --user flathub com.google.Chrome -y
@ -82,6 +87,7 @@ if $installchrome; then
fi fi
if [ "${deckyplugin}" = false ]; then if [ "${deckyplugin}" = false ]; then
#Download Modules #Download Modules
# Define the repository and the folders to clone # Define the repository and the folders to clone
@ -1868,8 +1874,13 @@ if [[ $options == *"Netflix"* ]] || [[ $options == *"Fortnite"* ]] || [[ $option
echo "Google Chrome is already installed" echo "Google Chrome is already installed"
flatpak --user override --filesystem=/run/udev:ro com.google.Chrome flatpak --user override --filesystem=/run/udev:ro com.google.Chrome
else else
# Install the Flatpak runtime # 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 flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
fi
# Install Google Chrome # Install Google Chrome
flatpak install --user flathub com.google.Chrome -y flatpak install --user flathub com.google.Chrome -y
@ -1880,6 +1891,7 @@ if [[ $options == *"Netflix"* ]] || [[ $options == *"Fortnite"* ]] || [[ $option
fi fi
# wait for Google Chrome to finish # wait for Google Chrome to finish
wait wait