Public bug reported: Binary package hint: gnome-session
While porting the "Inhibit suspending" LottaNZB plug-in (written in Python) from the old org.freedesktop.PowerManagement.Inhibit API to the new org.gnome.SessionManager API introduced in Karmic, I noticed that after successfully passing the 0x4 flag to the Inhibit DBus method [1], the computer will still be suspended after the session has timed out and the amount of time stored in /apps/gnome-power- manager/timeout/sleep_computer_ac has passed after that. First I thought that I didn't properly use the new API, but I noticed that Transmission (that also passes 0x4 to the very same Inhibit method) doesn't actually prevent the computer from being suspended either, which means that it's neither LottaNZB's nor Transmission's fault. Passing 0x4 | 0x8 to the Inhibit method works as intended, because the 0x8 flag prevents the session from timing out and thus the computer will not be suspended. However, I'd rather not use 0x4 | 0x8 because an active download operation is not negatively affected by a timed out session, but only by the computer being suspended. I really hope that someone can confirm this problem and know how to tackle it. [1] http://www.gnome.org/~mccann/gnome-session/docs/gnome- session.html#org.gnome.SessionManager.Inhibit ProblemType: Bug Architecture: amd64 Date: Thu Jan 21 23:01:43 2010 DistroRelease: Ubuntu 10.04 InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha amd64 (20100113) Package: gnome-session 2.28.0-0ubuntu8 PackageArchitecture: all ProcEnviron: LANG=de_CH.utf8 SHELL=/bin/bash ProcVersionSignature: Ubuntu 2.6.32-11.15-generic SourcePackage: gnome-session Uname: Linux 2.6.32-11-generic x86_64 ** Affects: gnome-session (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug lucid -- Inhibit suspending (flag 0x4) not working over DBus https://bugs.launchpad.net/bugs/510907 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in ubuntu. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs