From 8957d514327e7ea1e6d267c8eff306c8fe93cfac Mon Sep 17 00:00:00 2001 From: Krzysztof kuhy Rudnicki Date: Sun, 1 Nov 2026 13:04:10 +0100 Subject: [PATCH] Desktop: launch Chrome --app with --disable-extensions (no stray extension windows) Co-Authored-By: Claude Opus 5.5 --- app/bin/diet_guard_desktop.dart | 5 +++++ app/pubspec.yaml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/bin/diet_guard_desktop.dart b/app/bin/diet_guard_desktop.dart index 90b71d8..ffead3b 100644 --- a/app/bin/diet_guard_desktop.dart +++ b/app/bin/diet_guard_desktop.dart @@ -163,6 +163,11 @@ Future _launchBrowser(String home, int port) async { // a browser icon instead of diet_guard's. '--class=diet_guard_app', '--no-first-run', + // The distro wrapper appends ~/.config/chromium-flags.conf to every launch, + // which here carries `--load-extension` for Claude in Chrome. Logged out in + // this profile, it opened a claude.ai login tab in a second, normal browser + // window on every start. This flag also drops command-line extensions. + '--disable-extensions', ]); final started = DateTime.now(); diff --git a/app/pubspec.yaml b/app/pubspec.yaml index e5d9a68..b45ac1f 100644 --- a/app/pubspec.yaml +++ b/app/pubspec.yaml @@ -2,7 +2,7 @@ name: diet_guard_app description: "Companion phone app for diet_guard: log meals on the go." publish_to: 'none' -version: 1.0.121+1 +version: 1.0.122+1 environment: sdk: ^3.12.2