Is it possible to launch Chrome on host (symlinked with distrobox-host-exec) with VSCode inside distrobox? #1376
Unanswered
regunakyle
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I ran
sudo ln -s /usr/bin/distrobox-host-exec /usr/local/bin/google-chrome
in a Debian 12 distrobox, then I tried to launch Chrome (with VSCode debug config) and failed. VSCode showed a popupUnable to launch browser: "Unable to attach to browser"
.VSCode can launch Chrome (or Chromium) installed inside the distrobox. Not sure what went wrong in the host symlink case.
Steps to reproduce:
sudo ln -s /usr/bin/distrobox-host-exec /usr/local/bin/google-chrome
.vscode
folder, then create alaunch.json
inside with the following content:"runtimeExecutable": "/usr/bin/chromium"
underwebRoot
inlaunch.json
if you use Chromium). Now the browser is launched properly.Beta Was this translation helpful? Give feedback.
All reactions