Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
added better detection for google chrome
  • Loading branch information
moraroy authored May 2, 2024
1 parent efd858c commit 3d48e8e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions NonSteamLaunchers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ for arg in "${args[@]}"; do
# 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
if flatpak list | grep com.google.Chrome &> /dev/null; then
echo "Google Chrome is already installed"
flatpak --user override --filesystem=/run/udev:ro com.google.Chrome
else
Expand All @@ -81,7 +81,6 @@ if $installchrome; then
fi
fi


if [ "${deckyplugin}" = false ]; then
#Download Modules
# Define the repository and the folders to clone
Expand Down Expand Up @@ -2189,21 +2188,22 @@ if [[ $options == *"Netflix"* ]] || [[ $options == *"Fortnite"* ]] || [[ $option
echo "User selected one of the options"

# Check if Google Chrome is already installed
if command -v google-chrome &> /dev/null; then
if flatpak list | grep com.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
flatpak install flathub com.google.Chrome -y

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


# wait for Google Chrome to finish
wait

Expand Down

0 comments on commit 3d48e8e

Please sign in to comment.