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

Ubuntu: See 'Signal is ready' in addition to normal notification

Open CelianGdfrd opened this issue 2 years ago • 14 comments

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

Bug Description

When I receive a notification on Signal, using the Ubuntu app, the notification I get is generic, "New message". It's only when I pass my mouse over it that a second notification, containing the sender's name, picture, and the content of the notification, correctly shows up.

Steps to Reproduce

  1. Having Signal-Desktop open and running on Ubuntu
  2. Receiving a message

Actual Result:

A generic notification without any information appears at first.

Expected Result:

A notification with far more details, like the second one appearing, should show up directly.

Platform Info

Signal Version:

5.54.0

Operating System:

Ubuntu 22.04.1

Linked Device Version:

Android 5.45.6

CelianGdfrd avatar Aug 16 '22 15:08 CelianGdfrd

Check your Signal Preferences.

Avatar menu -> Preferences -> Notifications. What does it say for "Notification Content"?

josh-signal avatar Aug 16 '22 21:08 josh-signal

"Name only"

CelianGdfrd avatar Aug 17 '22 13:08 CelianGdfrd

I managed to catch the two notifications displayed : first one first, then when I pass over it with the mouse, the other one.

Capture d’écran du 2022-08-17 15-40-39 Capture d’écran du 2022-08-17 15-40-54

CelianGdfrd avatar Aug 17 '22 13:08 CelianGdfrd

do you always get the "Signal est pret" message obscuring a regular message? I'm not finding that string in our localization strings so I'm not sure it's coming from signal

josh-signal avatar Aug 18 '22 14:08 josh-signal

99% of the time, yes.

CelianGdfrd avatar Aug 18 '22 14:08 CelianGdfrd

is there an OS setting dealing with notifications perhaps?

josh-signal avatar Aug 18 '22 14:08 josh-signal

I've been looking for something like that, but I can't find any.

CelianGdfrd avatar Aug 18 '22 14:08 CelianGdfrd

It's not a bug from Signal, you can remove the message with this gnome extension: https://extensions.gnome.org/extension/1005/focus-my-window/

antoinentl avatar Aug 25 '22 14:08 antoinentl

This is an issue specific to Gnome. Works as intended on KDE, which probably means it can't be modified from the Signal client side.

GeluOltean avatar Sep 03 '22 19:09 GeluOltean

Note that this 'is ready' notification is a common thing: https://askubuntu.com/questions/1286206/how-to-skip-the-is-ready-notification-and-directly-open-apps-in-ubuntu-20-4

scottnonnenberg-signal avatar Sep 08 '22 17:09 scottnonnenberg-signal

If you don't think that this is a Linux/Window Manager problem to go fix in configuration, please go comment on this Electron issue: https://github.com/electron/electron/issues/18445

scottnonnenberg-signal avatar Sep 08 '22 17:09 scottnonnenberg-signal

As a work around for the issue try disabling Preferences » Notifications » Draw attention to this window when a notification arrives in Signal's settings.

Then it should stop the "Signal is ready" notification in GNOME. GNOME prevents focus-stealing and notifies the user when window has tried to gain focus. I do think the nomenclature of the notification is a little weird, « App » est prêt ("App" is ready) doesn't really convey what the GNOME devs are intending. Something like "App" wants focus. Click to focus. would be better.

This is an issue specific to Gnome. Works as intended on KDE, which probably means it can't be modified from the Signal client side.

GNOME seems to consider this a feature, even if it reduces usability of apps (other messaging apps are effected from my experience) Perhaps Signal should by default have that setting disable on GNOME if possible? I'm not sure what benefit there is to drawing the focus to the window if the DE supports notifications, particularly when grabbing focus can result in sending sensitive information by accident.

31j avatar Oct 03 '22 17:10 31j

@scottnonnenberg-signal

I think, the relevant discussion is here

In particular GNOME Shell's maintainer Florian Mullner's remark at the beginning:

Why does this [App is ready] happen?

Usually it means that an app tried to raise a window, but was denied by mutter's focus-stealing prevention heuristics. The most common reason is that the app either passes an event time of 0, or one that is older than the most recent user > interaction.

Not sure, if Signal can fix this or it has to be on an Electron level.


Anyway, in my opinion and for GNOME at least - Signal should neber request window focus at all, but just rely on notifications to notify on incoming calls or messages, letting the user accept the call from the notification or turn to Signal's window in case of a message.

maymage avatar Jan 23 '23 09:01 maymage

This is essentially a duplicate of #5004.

nekohayo avatar Feb 25 '24 21:02 nekohayo