@@ -29,22 +29,18 @@ if [ -n "${TRONBROWSER_BROWSER:-}" ]; then
2929elif [ -x " $DIR /chrome" ]; then
3030 BROWSER=" $DIR /chrome" # future: bundled native fork binary
3131else
32- # De-googled binaries only — NO google-chrome. Prefer non- snap.
33- snap_fallback= " "
34- for c in ungoogled-chromium ungoogled-chromium-stable chromium chromium-browser ; do
32+ # Ungoogled Chromium ONLY. Never regular Chromium/Chrome, never snap (snap
33+ # chromium is regular AND can't be isolated). No fallbacks.
34+ for c in ungoogled-chromium ungoogled-chromium-stable; do
3535 p=" $( command -v " $c " 2> /dev/null) " || continue
36- case " $p " in
37- /snap/* ) [ -z " $snap_fallback " ] && snap_fallback=" $p " ;;
38- * ) BROWSER=" $p " ; break ;;
39- esac
36+ BROWSER=" $p " ; break
4037 done
41- # Flatpak Ungoogled Chromium (Flathub) — a fully de-googled option .
38+ # Flatpak Ungoogled Chromium (Flathub) — fully de-googled.
4239 if [ -z " $BROWSER " ] && command -v flatpak > /dev/null 2>&1 ; then
4340 for app in io.github.ungoogled_software.ungoogled_chromium com.github.Eloston.UngoogledChromium; do
4441 if flatpak info " $app " > /dev/null 2>&1 ; then BROWSER=" flatpak" ; FLATPAK_APP=" $app " ; break ; fi
4542 done
4643 fi
47- [ -z " $BROWSER " ] && [ -n " $snap_fallback " ] && { BROWSER=" $snap_fallback " ; IS_SNAP=1; }
4844fi
4945
5046# macOS app bundles (de-googled only). Capture the .app path too — on macOS we
6359
6460if [ -z " $BROWSER " ]; then
6561 cat >&2 << MSG
66- TronBrowser is de-googled and needs Ungoogled Chromium (it will NOT run Google Chrome).
67- Install one of:
68- flatpak install -y flathub io.github.ungoogled_software.ungoogled_chromium
69- # or your distro's 'ungoogled-chromium' / 'chromium' package
70- Then run 'tron' again. (Force a specific binary with TRONBROWSER_BROWSER=/path/to/browser.)
62+ TronBrowser runs Ungoogled Chromium ONLY — never regular Chrome/Chromium.
63+ Install Ungoogled Chromium:
64+ macOS: brew install --cask ungoogled-chromium
65+ Linux: flatpak install -y flathub io.github.ungoogled_software.ungoogled_chromium
66+ (or just re-run: curl -fsSL https://tronbrowser.dev/install.sh | sh )
67+ Then run 'tron' again. (Advanced override: TRONBROWSER_BROWSER=/path/to/ungoogled-chromium)
7168MSG
7269 exit 1
7370fi
@@ -135,15 +132,18 @@ if not d.get("default_search_provider_data", {}).get("template_url_data"):
135132PY
136133fi
137134
138- # Warn loudly when the chosen browser isn't a de-googled Ungoogled Chromium.
135+ # Auto-detection only ever selects Ungoogled Chromium / flatpak ungoogled / the
136+ # macOS Ungoogled cask (which installs as Chromium.app). The only way to reach a
137+ # non-ungoogled binary is an explicit TRONBROWSER_BROWSER override — warn there,
138+ # but don't block the user's deliberate choice.
139139case " $BROWSER " in
140140 * [Uu]ngoogled* ) ;; # ideal (matches "Ungoogled Chromium.app" too)
141141 flatpak) ;; # flatpak ungoogled
142142 * )
143- echo " TronBrowser: running ' $BROWSER ' — this is regular Chromium, NOT de-googled. " >&2
144- echo " For a fully de-googled browser, install Ungoogled Chromium: " >&2
145- echo " flatpak install -y flathub io.github.ungoogled_software.ungoogled_chromium " >&2
146- [ " $IS_SNAP " = " 1 " ] && echo " (snap confinement also blocks an isolated TronBrowser profile — a non-snap browser is recommended.) " >&2
143+ if [ -z " $MAC_APP " ] && [ -n " ${TRONBROWSER_BROWSER :- } " ] ; then
144+ echo " TronBrowser: TRONBROWSER_BROWSER=' $BROWSER ' may not be Ungoogled Chromium. " >&2
145+ echo " TronBrowser is meant to run Ungoogled Chromium only. " >&2
146+ fi
147147 ;;
148148esac
149149
0 commit comments