VS Code Flatpak calling Brave Flatpak

Undone@lemmy.fmhy.ml to Linux@lemmy.ml – 17 points –

I'm developing an app with Flutter in VS Code installed with Flatpak. I'm trying to debug the app with Brave, which is also installed with Flatpak. As the apps are sandboxed due to Flatpak they don't see each other.

Is there a way to make VS Code able to launch Brave in debug mode?

6

You are viewing a single comment

How about allow system library?

No dice, it still doesn't work. I tried with all toggles active in Filesystem section but none seem to make it work.

Seems you need to alias brave with flatpak run. Because it tried to run brave, and because it's not in path it won't able to run.

flatpak run com.brave.Browser in a shell script with chmod +x to /usr/local/bin/brave

Content could be the run with $@

I'm not sure it will work, but worth to try.