mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2024-12-21 07:11:52 +01:00
Amazon Luna uses Chrome
~Fixed Amazon Luna to use Chrome instead of Edge
This commit is contained in:
parent
ac7dc18480
commit
31eca56d94
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user