From 8d09aebbb86dd9717bbe235b08eab6d781a4bfda Mon Sep 17 00:00:00 2001 From: Steve Zabka Date: Sun, 31 Aug 2025 14:38:57 +0200 Subject: [PATCH] Add registry entries for Firefox ESR in Wine Flatpak --- files/builds/dev-branch/flatpak-installation.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/builds/dev-branch/flatpak-installation.sh b/files/builds/dev-branch/flatpak-installation.sh index d1784a6..01848e7 100644 --- a/files/builds/dev-branch/flatpak-installation.sh +++ b/files/builds/dev-branch/flatpak-installation.sh @@ -237,8 +237,8 @@ curl -L "$FIREFOX_ESR_INSTALLER_URL" -o "$HOME/.var/app/org.winehq.Wine/data/win timeout 120 flatpak run --env="WINEPREFIX=$HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360" org.winehq.Wine $HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360/drive_c/users/$USER/Downloads/FirefoxESRInstaller.exe /silent /install # Change Registry: Set Firefox ESR as default browser in Wine Flatpak -timeout 60 flatpak run --env="WINEPREFIX=$HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360" org.winehq.Wine reg add "HKCU\\Software\\Clients\\StartMenuInternet" /ve /d "Firefox" /f -timeout 60 flatpak run --env="WINEPREFIX=$HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360" org.winehq.Wine reg add "HKCU\\Software\\Clients\\StartMenuInternet\\Firefox\\shell\\open\\command" /ve /d "\"$HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360/drive_c/Program Files/Mozilla Firefox/firefox.exe\" \"%1\"" /f +timeout 60 flatpak run --env="WINEPREFIX=$HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360" org.winehq.Wine reg add "HKLM\\Software\\Clients\\StartMenuInternet" /ve /d "Firefox" /f +timeout 60 flatpak run --env="WINEPREFIX=$HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360" org.winehq.Wine reg add "HKLM\\Software\\Clients\\StartMenuInternet\\Firefox\\shell\\open\\command" /ve /d "\"$HOME/.var/app/org.winehq.Wine/data/wineprefixes/fusion360/drive_c/Program Files/Mozilla Firefox/firefox.exe\" \"%1\"" /f # Optional: Check if Firefox is set correctly # Execute the query with a timeout and save the output