After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 660609 - Don't make users click on the auto-run notification to dismiss it.
Don't make users click on the auto-run notification to dismiss it.
Status: RESOLVED DUPLICATE of bug 657923
Product: gnome-shell
Classification: Core
Component: message-tray
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
: 662428 677285 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-10-01 02:59 UTC by Jasper St. Pierre (not reading bugmail)
Modified: 2012-08-23 11:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
messageTray: Add new API for notifications that want to auto-expand (2.10 KB, patch)
2011-10-01 02:59 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
autorunManager: Use new Notification.setAutoExpand API (1.19 KB, patch)
2011-10-01 03:00 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
messageTray: Add new API for implicit URGENT properties of notifications (2.62 KB, patch)
2011-10-07 21:54 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
autorunManager: Use new Notification APIs (1.30 KB, patch)
2011-10-07 21:54 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review

Description Jasper St. Pierre (not reading bugmail) 2011-10-01 02:59:57 UTC
It's quite an annoying behavior.
Comment 1 Jasper St. Pierre (not reading bugmail) 2011-10-01 02:59:59 UTC
Created attachment 197937 [details] [review]
messageTray: Add new API for notifications that want to auto-expand

Some clients mark their notifications as URGENT for the sole benefit of an
auto-expanding notification, without wanting any the other behaviors. Add
an explicit API for these clients.
Comment 2 Jasper St. Pierre (not reading bugmail) 2011-10-01 03:00:01 UTC
Created attachment 197938 [details] [review]
autorunManager: Use new Notification.setAutoExpand API

Instead of marking ourselves as URGENT, use the new setAutoExpand API so
that users don't have to click on our notifications to dismiss them.
Comment 3 Florian Müllner 2011-10-04 19:38:26 UTC
If I remember correctly, the reason to mark automount notifications URGENT was less to get autoexpanding, but rather that it provides more functionality than the summary notification (e.g. a list of supported actions rather than only one).
Comment 4 Cosimo Cecchi 2011-10-06 13:43:46 UTC
A couple of points:
- the physical machine could not be immediately accessible to the user when plugging the removable device, e.g. it could be a workstation under your desk and some time might pass between the moment you plug the device and the time you're actually able to act on the notification (or you might even miss it). That's mostly the reason it doesn't time out automatically IIRC.
- an orthogonal approach that was proposed for this is having an explicit Close/Cancel button on the notification itself, so it's clear to the user how to get rid of it. If we wanted to go down this way, we should probably do it consistently for other notifications as well, even though it is somehow mitigated by the notification hiding away when it's not urgent.

I can see how the current behaviour could potentially be annoying if you already know what you're looking for, e.g. when you have an app already focused (say, GIMP) and want to open an additional file from the removable device, but have no strong opinion on the approach of this patches.

CC-ing Jon: what do you think?
Comment 5 Jasper St. Pierre (not reading bugmail) 2011-10-07 21:54:35 UTC
Created attachment 198572 [details] [review]
messageTray: Add new API for implicit URGENT properties of notifications

Some clients mark their notifications as URGENT for the benefits of an
auto-expanding notification or one that doesn't timeout. Allow clients to
control these properties individually instead of an "all or nothing"
approach.



--

I still don't think setting URGENT to get the properties of an URGENT notification is the correct thing to do. Unless we want automount notifications to take priority.
Comment 6 Jasper St. Pierre (not reading bugmail) 2011-10-07 21:54:41 UTC
Created attachment 198573 [details] [review]
autorunManager: Use new Notification APIs

Instead of marking ourselves as URGENT, use the new APIs for
notification properties so that these don't block normal notifications.
Comment 7 Jasper St. Pierre (not reading bugmail) 2011-10-21 22:49:45 UTC
*** Bug 662428 has been marked as a duplicate of this bug. ***
Comment 8 el 2011-10-21 23:08:50 UTC
I ran into this auto-expanding behaviour with two notifications, which have been those. Let me first explain why I personally didn't find them useful (while other users MAY find them very useful, just for demonstrating that not everyone might be interested in them):

- Mount notification when plugging in an usb stick. Highly disruptive because a) I know I just plugged in the usb stick (informative value: zero), b) I wanted to use it later but not instantly (therefore practical value of the offered buttons for instant use: zero)

- System update notification: I always use yum update because yum is slow enough without a GUI. Additionally I often turn my computer off or do things where I require more cpu since the machine is quite weak (netbook), therefore I often don't want to update right away but when I have the time for it and don't need the machine for other intensive tasks.

Now of course the missing timeout of those notifications (as described by this bug) is annoying, but I have another issue with it that isn't discussed here:

Why do those notifications need to be auto-expanding at all? Expanded they are huge on netbooks, and that is pretty huge for notifications I don't care about. Others might care (I am not questioning that those notifications ARE possibly useful to some users) and can just move the mouse down there. But why auto-expand them right from the start at all and annoy the users that don't care?
Comment 9 el 2011-10-25 21:43:23 UTC
> - the physical machine could not be immediately accessible to the user when
> plugging the removable device, e.g. it could be a workstation under your desk
> and some time might pass between the moment you plug the device and the time
> you're actually able to act on the notification (or you might even miss it).
> That's mostly the reason it doesn't time out automatically IIRC.

So what about timing it out when the user is clearly not idle (has used mouse or keyboard since notification appeared or since stick was plugged in) and otherwise keep it on screen forever?

Given urgent notifications are generally really urgent (major sytem failure or whatever else it might be used for) and should be really seen and noticed by the user, this would be probably the best idea (while still making them less annoying).

There should probably be an exception for movie player detection so that it doesn't obscure the screen forever when you watch a movie but don't actively interact with the machine, if something like that is technically possible (I guess most movie players deactivate screensavers when they're running, so that might be a helpful indication for such a case).
Comment 10 CoudCoud 2011-11-22 11:15:50 UTC
Perhaps there should be an icon that opens an history of former displayed notifications?
My father has an androphone (sony xperia) which has a notification area that displays missed notifications by sliding a bar located on top of screen.
Comment 11 Florian Müllner 2012-07-10 20:30:17 UTC
*** Bug 677285 has been marked as a duplicate of this bug. ***
Comment 12 Allan Day 2012-08-23 11:13:14 UTC

*** This bug has been marked as a duplicate of bug 657923 ***