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 567908 - inhibit session instead of screensaver
inhibit session instead of screensaver
Status: RESOLVED FIXED
Product: totem
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: General Totem maintainer(s)
General Totem maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2009-01-15 21:29 UTC by William Jon McCann
Modified: 2011-03-20 04:44 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description William Jon McCann 2009-01-15 21:29:39 UTC
There is now an API in gnome-session that consolidates the various inhibit apis.

http://svn.gnome.org/viewvc/gnome-session/trunk/gnome-session/org.gnome.SessionManager.xml?view=markup

basically:
Inhibit ("totem", toplevel-xid, "Playing movie", 8, &cookie)

where totem is the name of the app-id / desktop file that describes the app (ala gio).
Comment 1 Bastien Nocera 2009-01-16 10:30:59 UTC
Does the new gnome-screensaver use that already? How can I check the current inhibit status of the session for debugging purposes?
Comment 2 William Jon McCann 2009-01-16 12:51:39 UTC
Screensaver does not use it yet.  Hope to have that done in the next day or so.  You can use GetInhibitors method on the session to debug.  Or just use d-feet to look for object paths for each of the inhibitor clients.  I think I also have a test tool in the session source iirc.
Comment 3 Nicolò Chieffo 2009-05-29 13:56:42 UTC
Hello. I'm using gnome-power-manager 2.26.1-0ubuntu3 and currently totem 2.26.2-0ubuntu1 is not capable to stop the screen to blank after the time set in gnome-power-manager.
Is this bug the cause of my problem?
Comment 4 Alexander Kojevnikov 2009-08-11 03:28:39 UTC
(In reply to comment #3)
> Hello. I'm using gnome-power-manager 2.26.1-0ubuntu3 and currently totem
> 2.26.2-0ubuntu1 is not capable to stop the screen to blank after the time set
> in gnome-power-manager.
> Is this bug the cause of my problem?
> 

See bug 580562
Comment 5 Patrik Dufresne 2009-10-16 14:30:50 UTC
I've been reporting this bug in launchpad. Their investigation lead them to a lake of totem to call the right API.

https://bugs.launchpad.net/ubuntu/+source/totem/+bug/381116


Totem version : 2.28.1
I confirm the problem for Totem and the Totem plugin.
Comment 6 Bastien Nocera 2009-10-16 15:10:50 UTC
(In reply to comment #5)
> I've been reporting this bug in launchpad. Their investigation lead them to a
> lake of totem to call the right API.
> 
> https://bugs.launchpad.net/ubuntu/+source/totem/+bug/381116
> 
> 
> Totem version : 2.28.1
> I confirm the problem for Totem and the Totem plugin.

Then they're wrong. The API is still there (or should still be there) in gnome-screensaver, so there's no reasons why it shouldn't work as expected.
Comment 7 William Jon McCann 2011-03-20 04:44:55 UTC
Looks fixed:
commit c6fc9c4785904cda4b648dbdbd24958d1010c4a1
Author: Bastien Nocera <hadess@hadess.net>
Date:   Thu Mar 10 14:01:06 2011 +0000

    lib: Use gnome-session to Inhibit idle