fix(dev): launch Flatpak Chrome/Firefox for incognito browser window
This commit is contained in:
@@ -179,12 +179,14 @@ run_with_label "$COLOR_CSS" "css " make css-watch
|
|||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
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 &
|
google-chrome --incognito "$DEV_URL" &>/dev/null &
|
||||||
elif command -v chromium >/dev/null 2>&1; then
|
elif command -v chromium >/dev/null 2>&1; then
|
||||||
chromium --incognito "$DEV_URL" &>/dev/null &
|
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
|
elif command -v firefox >/dev/null 2>&1; then
|
||||||
firefox --private-window "$DEV_URL" &>/dev/null &
|
firefox --private-window "$DEV_URL" &>/dev/null &
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user