fix(dev): launch Flatpak Chrome/Firefox for incognito browser window

This commit is contained in:
Deeman
2026-02-25 21:29:04 +01:00
parent 4235009db9
commit 61a3335197

View File

@@ -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