From 61a3335197558434cc4951eb6fdc2c2b171d50c6 Mon Sep 17 00:00:00 2001 From: Deeman Date: Wed, 25 Feb 2026 21:29:04 +0100 Subject: [PATCH] fix(dev): launch Flatpak Chrome/Firefox for incognito browser window --- web/scripts/dev_run.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/web/scripts/dev_run.sh b/web/scripts/dev_run.sh index a6ec072..8aa8a8f 100755 --- a/web/scripts/dev_run.sh +++ b/web/scripts/dev_run.sh @@ -179,12 +179,14 @@ run_with_label "$COLOR_CSS" "css " make css-watch break fi done - if command -v google-chrome >/dev/null 2>&1; then + if flatpak info com.google.Chrome >/dev/null 2>&1; then + flatpak run com.google.Chrome --incognito "$DEV_URL" &>/dev/null & + elif flatpak info org.mozilla.firefox >/dev/null 2>&1; then + flatpak run org.mozilla.firefox --private-window "$DEV_URL" &>/dev/null & + elif command -v google-chrome >/dev/null 2>&1; then google-chrome --incognito "$DEV_URL" &>/dev/null & elif command -v chromium >/dev/null 2>&1; then chromium --incognito "$DEV_URL" &>/dev/null & - elif command -v chromium-browser >/dev/null 2>&1; then - chromium-browser --incognito "$DEV_URL" &>/dev/null & elif command -v firefox >/dev/null 2>&1; then firefox --private-window "$DEV_URL" &>/dev/null & fi