-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
signal-desktop cannot open links in the browser #124901
Comments
I'm not using that feature and cannot easily test it for other reasons so unfortunately I cannot really help you with this (just as a FYI). |
I understand. Maybe some other users will have encountered this issue, though it isn't particularly major or a dealbreaker, more of an annoyance. |
I am having the same issue, can't really tell on which version it started happening as I'm not able to rollback due to Signal database upgrade. I am using Xorg so this issue is not specific to Wayland, I also think the issue isn't specific to Firefox as setting Chromium as my default browser didn't fix the problem either. |
I'm having this issue too. It started happening in all the electron-based applications I use (VS Code, Signal Desktop, and also Matrix Element when I tried that out). It's got to be a fairly recent change, maybe within the last two or three weeks. I assume #120228 has the same underlying cause. |
Just confirmed it and Element suffers from the same issue if run through XWayland, with the added detail that I get a "Firefox is already running but is not responding" error when attempting to open any link. Opening links works without issue in Element if using the experimental Wayland/Ozone backend. Additionally, like originally mentioned, I am also running Discord through XWayland (since it does not yet use Electron >=12, required for Wayland support) and links also open correctly there, which makes it more puzzling, even. |
I have the same error "Firefox is already running but is not responding" for Slack trying to open a link. Slack runs thru XWayland. |
Would any of you mind confirming if you can replicate the issue with another browser, e.g. by setting Chromium as default browser temporarily. |
I did that by doing (the first line removes the set -e BROWSER
xdg-settings set default-web-browser google-chrome.desktop
signal-desktop This did not change anything, though. Links still aren't being opened upon clicking on them. |
The underlying cause seems to be electron/electron#28436, which should get fix in electron/electron#29606.
Do you still get this error if you add edit: wrong link to pr. |
Yes, that does fix it, I found out about that environment variable later. But it only solves the issue for Element in XWayland, mind you, the Signal issue is as you said. |
Isn't this fix specific to Firefox on Wayland? As detailed in previous comments the problem happens with any browser and on X11 as well. |
Yes it is specific to Wayland, but it will also fix other GDK interactions such as the file chooser running in xwayland instead of wayland as a side product.
You're right, there's probably a different underlying problem on X11. Which desktop environment or window manager are you using with X11? I'm willing to try and reproduce it. |
I'm using i3, but know someone who has the same issue on KDE (might be easier to reproduce since it's easier to setup). |
I've tried to debug this issue using strace. On my machine, this seems to be caused by #122926, as |
If preloading SQLCipher is the issue (which sounds reasonable) then the easiest solution might be to wrap |
I checked with the newest commit from nixos-unstable (running signal-desktop version is |
Apparently this is somehow caused by
Unsetting that by having script like: #!/bin/sh
exec env -u GDK_BACKEND /run/current-system/sw/bin/firefox "$@" in I also have As to how to properly fix this, I am not sure. Unsetting |
@liff I started a discussion on a more thorough fix for issues with xdg-open in nixos here https://discourse.nixos.org/t/making-xdg-open-more-resilient/16777 |
Describe the bug
In the latest version (5.3.0) and at least since 5.2.1, I cannot open links in Firefox by clicking them.
This is similar to #78961, however, I have checked that the
nss
packages between Firefox and Signal are the same, usingnix path-info $(which signal-desktop) -r | grep nss-
as described in the wiki article regarding the Discord issue (notably, Discord is also correctly using the samenss
package and links open properly).At first I thought it might have been due to using the experimental Wayland support, which also breaks non-text copying and pasting (images, for instance), but running Signal through XWayland results in the same issue.
To Reproduce
Steps to reproduce the behavior:
signal-desktop
from theunstable
channelExpected behavior
The link should open in the browser
Screenshots
N/A
Additional context
Running on NixOS 21.11 (unstable), both with the
--enable-features=UseOzonePlatform --ozone-platform=wayland
experimental backend and with the "stable" X backend through XWayland; the result is the same.Using the sway window manager.
Notify maintainers
@primeos
Metadata
"x86_64-linux"
Linux 5.11.21, NixOS, 21.11pre292520.540dccb2aea (Porcupine)
yes
yes
nix-env (Nix) 2.4pre20210503_6d2553a
"nixos-21.11pre292520.540dccb2aea, home-manager"
/nix/var/nix/profiles/per-user/root/channels/nixos
Maintainer information:
The text was updated successfully, but these errors were encountered: