2

When I try to open browser preview in Google Chrome, I encounter this error:

browser error

Unfortunately, I have installed Google Chrome via flatpak, and there is no working installation path that I can just provide to IntelliJ.

Aleksander Stelmaczonek
  • 1,350
  • 1
  • 22
  • 29

1 Answers1

4

There are two options.

If Chrome is your default browser

You can use whatever "open" command you have for URLs. In my case it's xdg-open:

enter image description here

If Chrome is not your default browser

You need to start it via flatpak.

First, type flatpak in "Path":

enter image description here

Then click on edit button and paste run --command=/app/bin/chrome com.google.Chrome in "Command line options":

enter image description here

This works as I expect it to, opening new tab in existing Chrome window.


My IntelliJ is not sandboxed, it's managed by JetBrains Toolbox which in turn was semi-manually installed with this script.

Naturally, I have flatpak on PATH.

Aleksander Stelmaczonek
  • 1,350
  • 1
  • 22
  • 29