VS Code Flatpak calling Brave Flatpak

3 years ago by Undone to c/linux

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?

load all comments
letbelight 3 points 3 years ago path: 0 1114883, hotness: undefined, score: 3, children: 4
Undone 3 points 3 years ago

I tried adding the location for the Brave Flatpak in VS Code Flatpak with Flatseal.

Using Flatseal to set Braves Flatpak location in VS Code filesystem

It now shows the device but I get an error when launching the app for debug from VS Code.

Launching lib/main.dart on Chrome in debug mode...
[CHROME]:/var/lib/flatpak/app/com.brave.Browser/x86_64/stable/55eab7c3b790510e9175f8a064f16c84972163599c064dc833eff81bec751652/export/bin/com.brave.Browser: line 2: /usr/bin/flatpak: No such file or directory
Failed to launch browser after 3 tries. Command used to launch it: /var/lib/flatpak/exports/bin/com.brave.Browser --user-data-dir=/tmp/flutter_tools.LCRXFZ/flutter_tools_chrome_device.IXGKQA --remote-debugging-port=44639 --disable-background-timer-throttling --disable-extensions --disable-popup-blocking --bwsi --no-first-run --no-default-browser-check --disable-default-apps --disable-translate http://localhost:33631
Failed to launch browser. Make sure you are using an up-to-date Chrome or Edge. Otherwise, consider using -d web-server instead and filing an issue at https://github.com/flutter/flutter/issues.
Exited

I'm not sure what I need to modify to make VS Code launch Brave as a device in debug mode.

path: 0 1114883 1117766, hotness: undefined, score: 3, children: 3
letbelight 2 points 3 years ago

How about allow system library?

path: 0 1114883 1117766 1118039, hotness: undefined, score: 2, children: 2
linux
linux

@lemmy.ml

login for more options
68076
9448
5174

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

go to feed...