question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hyperlinks don't open on Arch Linux running KDE Plasma 5

See original GitHub issue

Hello, I found an existing issue https://github.com/Microsoft/vscode/issues/50139 but it is marked as closed, hence creating a new issue.

  • VSCode Version:
1.43.0
78a4c91400152c0f27ba4d363eb56d2835f9903a
x64

  • OS Version:
Operating System: Arch Linux 
KDE Plasma Version: 5.18.3
KDE Frameworks Version: 5.68.0
Qt Version: 5.14.1
Kernel Version: 5.5.9-arch1-2
OS Type: 64-bit
Processors: 12 × Intel® Core™ i7-8750H CPU @ 2.20GHz
Memory: 7.6 GiB of RAM

Steps to Reproduce:

  1. On an arch linux running KDE Plasma 5, open vscode or vscode Insider Edition (with or without extensions disabled)
  2. Open any file that has a hyperlink
  3. Ctrl + Click to follow the link
  4. Nothing happens.

Does this issue occur when all extensions are disabled?: Yes Does this issue occur in the Insider Edition? Yes

I expected the hyperlink to open in a browser.

Upon checking the process list, there is a processes associated with every Ctrl+Click (Because I clicked on the hyper link multiple times) and the PID changes because it crashes and the process re-spawns.

USER      59258  0.0  0.0   7840  3948 ?        S    11:50   0:00 /bin/sh /usr/bin/xdg-open https://bing.com/
USER      59260  0.0  0.4 286740 39696 ?        Rl   11:50   0:00 kde-open5 https://bing.com/
USER      59262  0.0  0.0   7840  3824 ?        S    11:50   0:00 /bin/sh /usr/bin/xdg-open https://bing.com/
USER      59263  0.0  0.0   7840  3904 ?        S    11:50   0:00 /bin/sh /usr/bin/xdg-open https://bing.com/
USER      59266  0.0  0.4 276048 38072 ?        Rl   11:50   0:00 kde-open5 https://bing.com/
USER      59267  0.0  0.0   7840  3672 ?        S    11:50   0:00 /bin/sh /usr/bin/xdg-open https://bing.com/
USER      59268  0.0  0.4 286740 39712 ?        Rl   11:50   0:00 kde-open5 https://bing.com/
USER      59269  0.0  0.4 286744 39752 ?        Rl   11:50   0:00 kde-open5 https://bing.com/
USER      59278  0.0  0.0   7840  3804 ?        S    11:50   0:00 /bin/sh /usr/bin/xdg-open https://bing.com/
USER      59281  0.0  0.3 201740 30188 ?        Rl   11:50   0:00 kde-open5 https://bing.com/
USER      59284  0.0  0.0   7840  3716 ?        S    11:50   0:00 /bin/sh /usr/bin/xdg-open https://bing.com/
USER      59285  0.0  0.3 176616 26216 ?        Sl   11:50   0:00 kde-open5 https://bing.com/

I managed to get the strace of the process if that is going to be of any help.


Process:
USER      30106  0.0  0.0   7840  3836 ?        S    12:25   0:00 /bin/sh /usr/bin/xdg-open https://bing.com/


strace: Process 30106 attached
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 30108
rt_sigaction(SIGINT, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f8b0ee30d70}, {sa_handler=0x559881b46ef0, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f8b0ee30d70}, 8) = 0
ioctl(2, TIOCGWINSZ, 0x7ffcb8e05300)    = -1 ENOTTY (Inappropriate ioctl for device)
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=30108, si_uid=1000, si_status=0, si_utime=5, si_stime=1} ---
wait4(-1, 0x7ffcb8e04b90, WNOHANG, NULL) = -1 ECHILD (No child processes)
rt_sigreturn({mask=[]})                 = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
exit_group(0)                           = ?
+++ exited with 0 +++

Not sure if it is related and would be of any help but journalctl also started showing the following error after the above process keeps crashing.

Mar 18 13:20:46 localghost kwin_x11[1758]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 26572, resource id: 125829125, major code: 18 (ChangeProperty), minor code: 0
Mar 18 13:20:46 localghost kwin_x11[1758]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 26597, resource id: 125829125, major code: 18 (ChangeProperty), minor code: 0
Mar 18 13:20:46 localghost kwin_x11[1758]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 26635, resource id: 125829125, major code: 18 (ChangeProperty), minor code: 0
Mar 18 13:20:46 localghost kwin_x11[1758]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 26643, resource id: 125829125, major code: 18 (ChangeProperty), minor code: 0
Mar 18 13:20:46 localghost kwin_x11[1758]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 26651, resource id: 125829125, major code: 18 (ChangeProperty), minor code: 0
Mar 18 13:20:46 localghost kwin_x11[1758]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 26659, resource id: 125829125, major code: 18 (ChangeProperty), minor code: 0

My default association for url opening is Chrome, and opening the same url from terminal using /bin/sh /usr/bin/xdg-open https://bing.com works.

Apologies if this issue doesn’t belong here. I am not sure if this needs to be raised with vscode or KDE. Thank you.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
nohuppedcommented, Jun 19, 2020

A quick update. I checked if this is existing in the normal package installation and found that this issue exists only with the snap installation of vscode. When I installed it via pacman, the links are working as expected. My snapd configuration is default. Is there something that I need to do to fix this problem? Please advise if I should change the title of this issue, or should I be raising a new issue to address this.

Thank you.

1reaction
AurevoirXaviercommented, Sep 3, 2020

Same output of --verbose.

But I get this with require('electron').shell.openExternal('https://google.com')

Uncaught Error: Check dependency list! Synchronous require cannot resolve module 'electron'. This is the first mention of this module!

I’m also on snap-built version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't Open Links in KDE? : r/archlinux - Reddit
So on my fresh Arch installation running KDE, it seems I can't open links if I'm clicking them outside of firefox.
Read more >
Cannot start plasma 5 / Newbie Corner / Arch Linux Forums
Re: Cannot start plasma 5​​ enable sddm and xorg/sddm/kde not start. then enble ssdm and kde start right. I think boot is too...
Read more >
How do I make it open all http/https URLs in Firefox?
i had set this option previously but i decided to start over but it seems like since i set that ... I'm on...
Read more >
Why isn't discover software manager able to load applications ...
But I am able to download packages through terminal. Please help. arch-linux · kde · application · plasma5 · Share.
Read more >
How to Properly Install and Setup KDE Plasma on Arch Linux
What's your favourite Desktop environment or Window Manager? Let us know and don't forget to subscribe on our social media.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found