Update NonSteamLaunchers.sh

This commit is contained in:
Roy 2024-05-05 18:15:24 -07:00 committed by GitHub
parent 1c5fe33b10
commit 5301fbca89
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -65,20 +65,20 @@ 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 for the current user
if flatpak list | grep com.google.Chrome &> /dev/null; then if flatpak list --user | grep com.google.Chrome &> /dev/null; then
echo "Google Chrome is already installed" echo "Google Chrome is already installed for the current user"
flatpak --user override --filesystem=/run/udev:ro com.google.Chrome flatpak --user override --filesystem=/run/udev:ro com.google.Chrome
else else
# Check if the Flathub repository exists # Check if the Flathub repository exists for the current user
if flatpak remote-list | grep flathub &> /dev/null; then if flatpak remote-list --user | grep flathub &> /dev/null; then
echo "Flathub repository exists" echo "Flathub repository exists for the current user"
else else
# Add the Flathub repository # Add the Flathub repository for the current user
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
fi fi
# Install Google Chrome # Install Google Chrome for the current user
flatpak install --user flathub com.google.Chrome -y flatpak install --user flathub com.google.Chrome -y
# Run the flatpak --user override command # Run the flatpak --user override command
@ -88,6 +88,7 @@ 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