dnd_is_screensaver_inhibited no longer works
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
notify-osd (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
Notifications are still shown even if the system inhibits screensaver(
The code seems to expect "GetInhibitors" method is in "org.gnome.
https:/
## unit32:8 = (Inhibit the session being marked as idle)
$ dbus-send --print-reply --dest=
method return sender=:1.24 -> dest=:1.284 reply_serial=2
boolean true
[src/dnd.c]
100 static DBusGProxy*
101 get_screensaver
102 {
103 if (gsmgr == NULL)
104 {
105 DBusGConnection *connection = dbus_get_connection ();
106 gsmgr = dbus_g_
107 "org.gnome.
108 "/org/gnome/
109 "org.gnome.
110 }
111
112 return gsmgr;
113 }
114
115 gboolean
116 dnd_is_
117 {
118 GError *error = NULL;
119 gboolean inhibited = FALSE;
120 char **list;
121
122 if (! get_screensaver
123 return FALSE;
124
125 if (dbus_g_
126 gsmgr, "GetInhibitors", 2000, &error,
127 G_TYPE_INVALID,
128 G_TYPE_STRV, &list,
129 G_TYPE_INVALID))
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: notify-osd 0.9.35+
ProcVersionSign
Uname: Linux 3.19.0-12-generic x86_64
ApportVersion: 2.17-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Apr 7 01:49:02 2015
DesktopSession: 'ubuntu'
EcryptfsInUse: Yes
GtkTheme: 'Ambiance'
IconTheme: 'ubuntu-mono-dark'
InstallationDate: Installed on 2015-02-28 (37 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Alpha amd64 (20150228)
MachineType: FUJITSU FMVS54KR
ProcKernelCmdLine: BOOT_IMAGE=
RelatedPackageV
xserver-xorg 1:7.7+7ubuntu4
libgl1-mesa-glx 10.5.2-0ubuntu1
libdrm2 2.4.59-0ubuntu1
xserver-
xserver-
SourcePackage: notify-osd
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 01/07/2013
dmi.bios.vendor: FUJITSU // Phoenix Technologies Ltd.
dmi.bios.version: Version 1.06
dmi.board.name: FJNB24F
dmi.board.vendor: FUJITSU
dmi.board.version: D2
dmi.chassis.type: 10
dmi.chassis.vendor: FUJITSU
dmi.modalias: dmi:bvnFUJITSU/
dmi.product.name: FMVS54KR
dmi.sys.vendor: FUJITSU
glxinfo: Error: [Errno 2] No such file or directory: 'glxinfo'
Related branches
- Iain Lane: Approve
-
Diff: 178 lines (+62/-44)4 files modifieddebian/changelog (+7/-0)
src/dnd.c (+52/-41)
src/dnd.h (+1/-1)
tests/test-dnd.c (+2/-2)
Changed in notify-osd (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → High |
tags: | added: rls-w-incoming |
The attached patch would "fix" the issue. However the dnd_is_ screensaver_ inhibited is broken at least for a few years now, users of caffeine[1] or indicator- session- idle-inhibit[ 2] might feel the "fix" is a regression, i.e. notification suddenly stops working by notify-osd update.
[1] https:/ /launchpad. net/caffeine /github. com/oyvindstega rd/indicator- session- idle-inhibit
[2] https:/