Open browser from VS Code in toolbox for Settings Sync auth

So I tried to install VS Code in a toolbox instead of as layered.

Otherwise it works fully well, but then I would need to open a browser for authenticating into Github for Settings Sync. As the toolbox does not have a browser installed, this seems to go nowhere. I have tried to look if I could do this authentication with e.g. a device code, but no luck yet.

I could of course install a browser in the toolbox, but that seem inelegant.

Any ideas how to proceed?

You can add a script in your path that redirects the commands to run them on your host, outside the toolbox:

after i found here a post that still works i found it so much easier to install VScode as flatpak and then make it to talk containers here is full guide that still works

I’m currently able to run VSCode with devcontainers on Fedora Silverblue. I use Flatpak VSCode, but installing it as a layered RPM is much easier. The following additional steps are needed for devcontainers to work with Podman:
In your devcontainer.json file, you must set properties remoteUser and containerUser properly. For example, if you use any base image from Microsoft itself, you must set both properties to vscode.
You must provide a file ~/.config/containers/containers.conf with the following contents:
[containers]
env = [
  "BUILDAH_FORMAT=docker"
]
label = false
userns = "keep-id"

If you’re using Flatpak VSCode, the following additional steps are needed:
Create a wrapper script ~/.local/bin/podman-host with the following contents, and make it executable:
#!/bin/sh
exec flatpak-spawn --host podman "${@}"

Configure Docker Path in your Dev Container extension settings to /var/home/[username]/.local/bin/podman-host
Give your Flatpak write permission to /tmp folder:
flatpak override --filesystem=/tmp com.visualstudio.code

Thanks to both! Yeah VS Code devcontainers are definitely on my list as well, but I want to keep my options open :smiley: