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