Change default notification policy for power notifications
An internal Endless bug report highlighted the fact that the Power notifications (from g-s-d’s power plugin) have their content hidden by default, but are showed on the lock screen by default. This means that, for example, if the computer is idle while the user is working nearby, a “the computer is about to suspend due to inactivity” notification will be shown on the lock screen, but it will only say ‘Power’ and not the full message. This will probably catch the user’s interest (their computer might be about to run out of battery!), so they’ll unlock the screen to check the notification — resetting the suspend idle counter, and undermining the point of suspending when idle.
There’s some discussion about this on gnome-settings-daemon!36 (closed), but I’ve filed
- gnome-settings-daemon!63 (merged)
- gnome-control-center!265 (merged) with some patches to allow the notifications to be controlled by the ‘Notifications’ control panel applet.
However, that only allows the user to change their preferences to improve this behaviour themselves, manually. It would be better if it worked well out of the box.
Would it be possible to add a custom NotificationPolicy
subclass which only applies to notifications with a desktop-entry
hint of gnome-power-panel
(see gnome-settings-daemon!63 (merged)), and which sets the default value for detailsInLockScreen
to true
? The value would still be overrideable by explicitly setting something in the ‘Notifications’ control panel applet.
I might have a play with some code shortly; just wanting to get some feedback on the idea.