gharris999
October 27th, 2010, 06:51 PM
Trying:
# dbus-send --print-reply --dest=org.gnome.SessionManager /org/gnome/SessionManager org.gnome.SessionManager.Inhibit string:'session-inhibitor' uint32:0 string:'not_idle' uint32:15
..seems to work, as the command returns what looks like a valid inhibitor cookie. But:
# dbus-send --print-reply --dest=org.gnome.SessionManager /org/gnome/SessionManager org.gnome.SessionManager.IsInhibited uint32:-1
..always returns FALSE. That command returns TRUE when the Power Manager Inhibit applet is in use or when I run the test-inhibit.c program compiled from the gnome session manager source code.
Anyone have any idea why my 1st dbus-send command isn't working?
# dbus-send --print-reply --dest=org.gnome.SessionManager /org/gnome/SessionManager org.gnome.SessionManager.Inhibit string:'session-inhibitor' uint32:0 string:'not_idle' uint32:15
..seems to work, as the command returns what looks like a valid inhibitor cookie. But:
# dbus-send --print-reply --dest=org.gnome.SessionManager /org/gnome/SessionManager org.gnome.SessionManager.IsInhibited uint32:-1
..always returns FALSE. That command returns TRUE when the Power Manager Inhibit applet is in use or when I run the test-inhibit.c program compiled from the gnome session manager source code.
Anyone have any idea why my 1st dbus-send command isn't working?