Signal-Desktop icon indicating copy to clipboard operation
Signal-Desktop copied to clipboard

Focus does not switch to browser from Signal Desktop 7.34 on Linux

Open LeftHandRev opened this issue 1 year ago • 4 comments

Using a supported version?

  • [X] I have searched searched open and closed issues for duplicates.
  • [X] I am using Signal-Desktop as provided by the Signal team, not a 3rd-party package.

Overall summary

When clicking a link from Signal Desktop on Linux, the focus does not switch to the browser.

Steps to reproduce

  1. Any chat
  2. Click link
  3. ???
  4. Profit.
  5. Focus doesn't switch to browser.

Expected result

  1. Any chat
  2. click link
  3. focus switches to browser.

Actual result

The focus doesn't switch from the Desktop client to the browser when clicking the URL in the chat.

Screenshots

Screenshots don't really apply here. It's behavioral, not visual.

Signal version

7.34

Operating system

Arch Linux - Linux archdaemon 6.11.4-arch1-1-surface #1 SMP PREEMPT_DYNAMIC Sun, 20 Oct 2024 14:47:06 +0000 x86_64 GNU/Linux

Version of Signal on your phone

7.26.1

Link to debug log

https://debuglogs.org/desktop/7.34.0/3dd3cd2f5dfc9335d5a0fe486b49dd6d056a565efee3a4d4e9db3fcf7a57f871.gz

LeftHandRev avatar Dec 02 '24 15:12 LeftHandRev

Hi! sorry this is happening for you. can you share what desktop environment and default browser you're using?

ayumi-signal avatar Dec 02 '24 16:12 ayumi-signal

KDE Plasma, but that's not pertinent, as it was also doing it in Budgie desktop. The default browser is Firefox, but I switched to another browser and it's the same behavior. URL handling doesn't seem to be affected by the default browser, but I'm willing to be proven wrong.

LeftHandRev avatar Dec 02 '24 18:12 LeftHandRev

thank you for the additional info!

ayumi-signal avatar Dec 02 '24 19:12 ayumi-signal

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Mar 02 '25 19:03 stale[bot]

I can confirm this is an issue. It seems to happen with virtually all electron apps.

I believe it's related to the Window focus issue on Wayland https://github.com/electron/electron/issues/30912.

That issue itself has been fixed and Signal is using a version of Electron that should have the fix. However, Signal's desktop application does not appear to be stable under Wayland currently and crashes if an X11 isn't available (at least in testing the flatpak).

DarkArc avatar Mar 18 '25 04:03 DarkArc

I'm actually going to suggest reopening this to keep track of who's running into it.

Curiously, in looking here: https://github.com/signalapp/Signal-Desktop/issues/6368#issuecomment-2324336318 the ELECTRON_OZONE_PLATFORM_HINT=wayland "workaround" does result in a working Signal Wayland window. However, I still don't get windows focusing correctly.

DarkArc avatar Mar 18 '25 04:03 DarkArc