Amazon Luna uses Chrome

~Fixed Amazon Luna to use Chrome instead of Edge
This commit is contained in:
Roy 2023-06-19 11:07:49 -07:00 committed by GitHub
parent ac7dc18480
commit 31eca56d94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2242,19 +2242,36 @@ if [[ $options == *"Netflix"* ]] || [[ $options == *"Xbox Game Pass"* ]] || [[ $
# User selected one of the options # User selected one of the options
echo "User selected one of the options" echo "User selected one of the options"
# Check if Microsoft Edge is already installed if [[ $options == *"Amazon Luna"* ]]; then
if command -v microsoft-edge &> /dev/null; then # Check if Google Chrome is already installed
echo "Microsoft Edge is already installed" if command -v google-chrome &> /dev/null; then
flatpak --user override --filesystem=/run/udev:ro com.microsoft.Edge 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
else else
# Install the Flatpak runtime # Check if Microsoft Edge is already installed
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo if command -v microsoft-edge &> /dev/null; then
echo "Microsoft Edge is already installed"
flatpak --user override --filesystem=/run/udev:ro com.microsoft.Edge
else
# Install the Flatpak runtime
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
# Install Microsoft Edge # Install Microsoft Edge
flatpak install flathub com.microsoft.Edge flatpak install flathub com.microsoft.Edge
# Run the flatpak --user override command # Run the flatpak --user override command
flatpak --user override --filesystem=/run/udev:ro com.microsoft.Edge flatpak --user override --filesystem=/run/udev:ro com.microsoft.Edge
fi
fi fi
fi fi
@ -2265,7 +2282,6 @@ wait
echo "99" echo "99"
echo "# Downloading & Installing Mods...please wait..." echo "# Downloading & Installing Mods...please wait..."
@ -2578,7 +2594,7 @@ fi
if [[ $options == *"Amazon Luna"* ]]; then if [[ $options == *"Amazon Luna"* ]]; then
# User selected Amazon Luna # User selected Amazon Luna
microsoftedgedirectory="\"$microsoftedge_path\"" microsoftedgedirectory="\"$microsoftedge_path\""
lunaedgelaunchoptions="run --branch=stable --arch=x86_64 --command=/app/bin/edge --file-forwarding com.microsoft.Edge @@u @@ --window-size=1280,800 --force-device-scale-factor=1.00 --device-scale-factor=1.00 --kiosk https://luna.amazon.com/ --edge-kiosk-type=fullscreen --no-first-run --enable-features=OverlayScrollbar" lunaedgelaunchoptions="run --branch=stable --arch=x86_64 --command=/app/bin/chrome --file-forwarding com.google.Chrome @@u @@ --window-size=1280,800 --force-device-scale-factor=1.00 --device-scale-factor=1.00 --kiosk https://luna.amazon.com/ --chrome-kiosk-type=fullscreen --no-first-run --enable-features=OverlayScrollbar"
fi fi