Vscode: Code snap package will not open links in browser

Created on 19 Jul 2019  路  2Comments  路  Source: microsoft/vscode

Hello,

I have come across an issue on Ubuntu using the snap package where links will not launch in the browser (from code).

Versions

dustin@bashfulbee:~$ code --version
1.36.1
2213894ea0415ee8c85c5eea0d0ff81ecc191529
x64

dustin@bashfulbee:~$ which code
/snap/bin/code

dustin@bashfulbee:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=19.04
DISTRIB_CODENAME=disco
DISTRIB_DESCRIPTION="Ubuntu 19.04"

dustin@bashfulbee:~$ i3 --version
i3 version 4.16.1-non-git 漏 2009 Michael Stapelberg and contributors

dustin@bashfulbee:~$ firefox --version
Mozilla Firefox 68.0

dustin@bashfulbee:~$ snap --version
snap    2.39.3
snapd   2.39.3
series  16
ubuntu  19.04
kernel  5.0.0-20-generic

Steps to Reproduce:

  1. Install the code snap with sudo snap install code --classic
  2. Opened the extensions and installed settings-sync
  3. Click any links on the settings sync page, there is no browser page launched.
  4. Installed the Terraform provider (extension), and tested links there; same behaviour.

Additional Troubleshooting

  • tested the code-insiders snap; failed behaviour.
  • Launched code with no extensions, went to the marketplace and tried a link; failed behaviour.
  • installed code-insiders via DEB; everything works as expected.
  • Ensured that the mime types were setup.
dustin@bashfulbee:~$ xdg-mime default firefox.desktop 'x-scheme-handler/https'

dustin@bashfulbee:~$ xdg-mime default firefox.desktop 'x-scheme-handler/http'
  • Ensured xdg was installed (although the DEB install confirmed that xdg was working)
dustin@bashfulbee:~$ apt list --installed | grep xdg

python3-xdg/disco,disco,now 0.25-5 all [installed,automatic]
snapd-xdg-open/disco-updates,now 2.39.2+19.04 amd64 [installed]
xdg-desktop-portal-gtk/disco,now 1.2.0-1 amd64 [installed]
xdg-desktop-portal/disco,now 1.2.0-1 amd64 [installed]
xdg-user-dirs-gtk/disco,now 0.10-3 amd64 [installed]
xdg-user-dirs/disco,now 0.17-2ubuntu1 amd64 [installed]
xdg-utils/disco,disco,now 1.1.3-1ubuntu2 all [installed]

Does this issue occur when all extensions are disabled?: Yes

Thank you in advance for your assistance. I appreciate your time.

*out-of-scope install-update linux snap

All 2 comments

Maybe related to this issue. When I click a link it will open it but won't use the browser that is already open. It will launch a new instance of the browser with a default configuration, so I see no plugins installed, no logins are remembered, all cookies gone(I need to sign in every time when I open a link through code).
Using Ubuntu 18.04, installed through snap.

This issue is being closed to keep the number of issues in our inbox on a manageable level, we are closing issues that are not going to be addressed in the foreseeable future: We look at the number of votes the issue has received and the number of duplicate issues filed. More details here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider.

If you wonder what we are up to, please see our roadmap and issue reporting guidelines.

Thanks for your understanding and happy coding!

Was this page helpful?
0 / 5 - 0 ratings