Skip to content

Commit

Permalink
moved isntallchrome up and reverted options back to normal
Browse files Browse the repository at this point in the history
  • Loading branch information
moraroy authored Mar 14, 2024
1 parent 59fc471 commit 1d7deb7
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion NonSteamLaunchers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,25 @@ for arg in "${args[@]}"; do
fi
done

# Check if the user wants to install Chrome
if $installchrome; then
# Check if Google Chrome is already installed
if command -v google-chrome &> /dev/null; 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

# Install Google Chrome
flatpak install flathub com.google.Chrome

# Run the flatpak --user override command
flatpak --user override --filesystem=/run/udev:ro com.google.Chrome
fi
fi


if [ "${deckyplugin}" = false ]; then
#Download Modules
# Define the repository and the folders to clone
Expand Down Expand Up @@ -2152,7 +2171,7 @@ echo "99"
echo "# Checking if Chrome is installed...please wait..."

# Check if user selected any of the options
if $installchrome || [[ $options == *"Netflix"* ]] || [[ $options == *"Fortnite"* ]] || [[ $options == *"Xbox Game Pass"* ]] || [[ $options == *"Geforce Now"* ]] || [[ $options == *"Amazon Luna"* ]] || [[ $options == *"Hulu"* ]] || [[ $options == *"Disney+"* ]] || [[ $options == *"Amazon Prime Video"* ]] || [[ $options == *"Youtube"* ]] || [[ $options == *"Twitch"* ]] || [[ $options == *"movie-web"* ]]; then
if [[ $options == *"Netflix"* ]] || [[ $options == *"Fortnite"* ]] || [[ $options == *"Xbox Game Pass"* ]] || [[ $options == *"Geforce Now"* ]] || [[ $options == *"Amazon Luna"* ]] || [[ $options == *"Hulu"* ]] || [[ $options == *"Disney+"* ]] || [[ $options == *"Amazon Prime Video"* ]] || [[ $options == *"Youtube"* ]] || [[ $options == *"Twitch"* ]] || [[ $options == *"movie-web"* ]]; then
# User selected one of the options
echo "User selected one of the options"

Expand Down

0 comments on commit 1d7deb7

Please sign in to comment.