You are not logged in.
Hi everyone,
I'm encountering an issue with signing into Visual Studio Code on Arch Linux. I believe the problem is related to xdg-open not opening URLs in Microsoft Edge correctly.
When I execute the command:
xdg-open 'https://www.example.com'
Microsoft Edge opens, but with http://target_uri/" in the address bar instead of the expected URL.
Here are the settings and outputs from my system:
$ echo $BROWSER
/usr/bin/microsoft-edge-stable
$ xdg-settings get default-web-browser
edge.desktop
$ xdg-mime query default x-scheme-handler/http
edge.desktop
$ xdg-mime query default x-scheme-handler/https
edge.desktop
$ XDG_UTILS_DEBUG_LEVEL=2 xdg-open 'https://www.example.com'
Selected DE generic
Checking /home/jim/.config/mimeapps.list
Opening in existing browser session.
$ cat /home/jim/.config/mimeapps.list
[Added Associations]
image/png=geeqie.desktop;
x-scheme-handler/http=edge.desktop;
x-scheme-handler/https=edge.desktop;
text/html=edge.desktop;
[Default Applications]
x-scheme-handler/http=edge.desktop
x-scheme-handler/https=edge.desktop
x-scheme-handler/chrome=edge.desktop
text/html=edge.desktop
application/x-extension-htm=edge.desktop
application/x-extension-html=edge.desktop
application/x-extension-shtml=edge.desktop
application/xhtml+xml=edge.desktop
application/x-extension-xhtml=edge.desktop
application/x-extension-xht=edge.desktop
x-scheme-handler/about=edge.desktop
x-scheme-handler/unknown=edge.desktop
x-scheme-handler/mailto=microsoft-edge.desktop
Has anyone experienced a similar issue or can offer some insights on how to resolve this? Any assistance would be greatly appreciated.
Thank you!
Last edited by bengallancer (2024-01-07 15:18:10)
Offline
Mod note: Moving to AUR Issues.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Please post the content of edge.desktop (should be in /usr/share/applications)
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Offline
/usr/share/applications/edge.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=Microsoft Edge
Comment=Microsoft's web browser
Exec=/usr/bin/microsoft-edge-stable
Terminal=false
StartupNotify=true
Categories=Network;WebBrowser;
Offline
Exec=/usr/bin/microsoft-edge-stable
That's the issue. Your Exec key doesn't pass any input to the browser.
copy usr/share/applications/edge.desktop to ~/.local/share/applications , then edit it and append %u to that line.
https://specifications.freedesktop.org/ … -variables for details on the Exec key .
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Offline
That was it, thank you Lone_Wolf.
Offline