mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2024-12-21 23:31:52 +01:00
Add files via upload
added better detection for google chrome
This commit is contained in:
parent
efd858cbc8
commit
3d48e8ec1a
@ -66,7 +66,7 @@ for arg in "${args[@]}"; do
|
|||||||
# Check if the user wants to install Chrome
|
# Check if the user wants to install Chrome
|
||||||
if $installchrome; then
|
if $installchrome; then
|
||||||
# Check if Google Chrome is already installed
|
# 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"
|
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
|
||||||
@ -81,7 +81,6 @@ if $installchrome; then
|
|||||||
fi
|
fi
|
||||||
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
|
||||||
@ -2189,7 +2188,7 @@ if [[ $options == *"Netflix"* ]] || [[ $options == *"Fortnite"* ]] || [[ $option
|
|||||||
echo "User selected one of the options"
|
echo "User selected one of the options"
|
||||||
|
|
||||||
# Check if Google Chrome is already installed
|
# 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"
|
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
|
||||||
@ -2197,13 +2196,14 @@ if [[ $options == *"Netflix"* ]] || [[ $options == *"Fortnite"* ]] || [[ $option
|
|||||||
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
|
||||||
|
|
||||||
# Install Google Chrome
|
# Install Google Chrome
|
||||||
flatpak install flathub com.google.Chrome
|
flatpak install flathub com.google.Chrome -y
|
||||||
|
|
||||||
# Run the flatpak --user override command
|
# Run the flatpak --user override command
|
||||||
flatpak --user override --filesystem=/run/udev:ro com.google.Chrome
|
flatpak --user override --filesystem=/run/udev:ro com.google.Chrome
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# wait for Google Chrome to finish
|
# wait for Google Chrome to finish
|
||||||
wait
|
wait
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user