Skip to content

Commit

Permalink
Update NonSteamLaunchers.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
moraroy authored May 6, 2024
1 parent 6dae6b3 commit 4f3e1a1
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions NonSteamLaunchers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -82,6 +87,7 @@ if $installchrome; then
fi



if [ "${deckyplugin}" = false ]; then
#Download Modules
# Define the repository and the folders to clone
Expand Down Expand Up @@ -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
Expand All @@ -1880,6 +1891,7 @@ if [[ $options == *"Netflix"* ]] || [[ $options == *"Fortnite"* ]] || [[ $option
fi



# wait for Google Chrome to finish
wait

Expand Down

0 comments on commit 4f3e1a1

Please sign in to comment.