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?

  • Undone@lemmy.fmhy.mlOP
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

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

    • SALT@lemmy.my.id
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      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.