Skip to content

Commit c3fd447

Browse files
committed
v0.1.19: Ungoogled Chromium ONLY — no regular Chrome/Chromium fallback
- launcher: drop generic chromium/chromium-browser + snap fallbacks; auto-detect selects only ungoogled-chromium binaries, flatpak ungoogled, or the macOS Ungoogled cask (Chromium.app). If none found, error with install steps — never run regular Chrome/Chromium. - install.sh: actually install Ungoogled Chromium — macOS via 'brew install --cask ungoogled-chromium' (checks the cask, hints --force on conflict), Linux via Flatpak. No more 'just a warning' on macOS. - only warn on an explicit TRONBROWSER_BROWSER override (deliberate choice)
1 parent 5e2a834 commit c3fd447

26 files changed

Lines changed: 72 additions & 57 deletions

File tree

apps/desktop/extensions/ai-sidebar/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "TronBrowser",
4-
"version": "0.1.18",
4+
"version": "0.1.19",
55
"description": "TronBrowser — privacy-first, AI-native. Branded new tab, DuckDuckGo search, CoinPay login, and a bring-your-own-keys AI sidebar.",
66
"icons": {
77
"16": "icons/icon-16.png",

apps/desktop/launcher/tronbrowser

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,18 @@ if [ -n "${TRONBROWSER_BROWSER:-}" ]; then
2929
elif [ -x "$DIR/chrome" ]; then
3030
BROWSER="$DIR/chrome" # future: bundled native fork binary
3131
else
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; }
4844
fi
4945

5046
# macOS app bundles (de-googled only). Capture the .app path too — on macOS we
@@ -63,11 +59,12 @@ fi
6359

6460
if [ -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)
7168
MSG
7269
exit 1
7370
fi
@@ -135,15 +132,18 @@ if not d.get("default_search_provider_data", {}).get("template_url_data"):
135132
PY
136133
fi
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.
139139
case "$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
;;
148148
esac
149149

apps/desktop/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tronbrowser/desktop",
3-
"version": "0.1.18",
3+
"version": "0.1.19",
44
"private": true,
55
"description": "Desktop shell for the TronBrowser Chromium fork",
66
"type": "module",

apps/docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tronbrowser/docs",
3-
"version": "0.1.18",
3+
"version": "0.1.19",
44
"private": true,
55
"description": "Documentation site",
66
"type": "module",

apps/mobile/app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"slug": "tronbrowserdev",
55
"owner": "profullstack",
66
"scheme": "tronbrowser",
7-
"version": "0.1.18",
7+
"version": "0.1.19",
88
"orientation": "portrait",
99
"userInterfaceStyle": "dark",
1010
"platforms": [

apps/mobile/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tronbrowser/mobile",
3-
"version": "0.1.18",
3+
"version": "0.1.19",
44
"private": true,
55
"description": "TronBrowser mobile (Expo / React Native) — Phase 2",
66
"type": "module",

apps/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tronbrowser/web",
3-
"version": "0.1.18",
3+
"version": "0.1.19",
44
"private": true,
55
"description": "TronBrowser marketing site + web dashboard",
66
"type": "module",

apps/web/public/install.sh

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -112,27 +112,42 @@ TRON
112112
ln -sf "$TRON_CLI" "$ALIAS_CLI"
113113
}
114114

115-
# TronBrowser is de-googled, so it runs Ungoogled Chromium. Make sure a
116-
# de-googled engine exists; offer to install the Flatpak Ungoogled Chromium.
117-
# Skip with TB_NO_BROWSER_INSTALL=1.
115+
# TronBrowser runs Ungoogled Chromium ONLY (never regular Chrome/Chromium), so
116+
# we install it as part of setup. Skip with TB_NO_BROWSER_INSTALL=1.
118117
ensure_browser() {
119-
for c in ungoogled-chromium ungoogled-chromium-stable; do
120-
command -v "$c" >/dev/null 2>&1 && return 0
121-
done
122-
if command -v flatpak >/dev/null 2>&1 && flatpak info io.github.ungoogled_software.ungoogled_chromium >/dev/null 2>&1; then
118+
[ "${TB_NO_BROWSER_INSTALL:-0}" = "1" ] && return 0
119+
120+
if [ "$(uname -s)" = "Darwin" ]; then
121+
# The ungoogled-chromium Homebrew cask installs Chromium.app (notarized).
122+
# Check the CASK (authoritative) — a bare Chromium.app might be REGULAR.
123+
if command -v brew >/dev/null 2>&1; then
124+
if brew list --cask ungoogled-chromium >/dev/null 2>&1; then return 0; fi
125+
info "Installing Ungoogled Chromium (brew cask)…"
126+
if ! brew install --cask ungoogled-chromium; then
127+
warn "brew install failed. If you already have a regular Chromium.app, replace it:"
128+
say " brew install --cask ungoogled-chromium --force"
129+
fi
130+
else
131+
warn "Homebrew not found — install it (https://brew.sh), then:"
132+
say " brew install --cask ungoogled-chromium"
133+
say " (or grab a notarized build from https://github.com/ungoogled-software/ungoogled-chromium-macos/releases)"
134+
fi
123135
return 0
124136
fi
125-
if [ "${TB_NO_BROWSER_INSTALL:-0}" = "1" ]; then return 0; fi
126137

127-
info "TronBrowser is de-googled and runs Ungoogled Chromium."
138+
# Linux: an ungoogled-chromium binary, else Flatpak Ungoogled Chromium (Flathub).
139+
for c in ungoogled-chromium ungoogled-chromium-stable; do
140+
command -v "$c" >/dev/null 2>&1 && return 0
141+
done
128142
if command -v flatpak >/dev/null 2>&1; then
129-
info "Installing Ungoogled Chromium via Flatpak (skip with TB_NO_BROWSER_INSTALL=1)…"
130-
flatpak install -y flathub io.github.ungoogled_software.ungoogled_chromium 2>/dev/null \
131-
|| warn "Flatpak install failed — install Ungoogled Chromium manually."
143+
flatpak info io.github.ungoogled_software.ungoogled_chromium >/dev/null 2>&1 && return 0
144+
info "Installing Ungoogled Chromium via Flatpak…"
145+
flatpak install -y flathub io.github.ungoogled_software.ungoogled_chromium \
146+
|| warn "Flatpak install failed — run it yourself: flatpak install -y flathub io.github.ungoogled_software.ungoogled_chromium"
132147
else
133-
warn "No de-googled browser found. Install Ungoogled Chromium for the full experience:"
148+
warn "No de-googled browser and no Flatpak found. Install Ungoogled Chromium:"
134149
say " flatpak install -y flathub io.github.ungoogled_software.ungoogled_chromium"
135-
say " (regular Chromium/Chrome still phones Google; the snap can't be isolated.)"
150+
say " (or your distro's 'ungoogled-chromium' package — NOT regular 'chromium')"
136151
fi
137152
}
138153

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tronbrowser",
3-
"version": "0.1.18",
3+
"version": "0.1.19",
44
"private": true,
55
"description": "TronBrowser.dev — open-source, privacy-first, AI-native browser",
66
"packageManager": "pnpm@9.12.0",

packages/agent-runtime/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tronbrowser/agent-runtime",
3-
"version": "0.1.18",
3+
"version": "0.1.19",
44
"private": true,
55
"description": "Agent runtime: planner, executor, validator, memory, tools",
66
"type": "module",

0 commit comments

Comments
 (0)