GNOME Bugzilla – Bug 656988
Screensaver inhibitor doesn't fall back to X11 codepath
Last modified: 2011-09-05 13:44:39 UTC
Running Totem 3.0.1 from within XFCE on Fedora 15. GNOME is also installed. XScreenSaver is not inhibited by Totem when totem is playing videos. The following error message appears as of commit a1ed327b7522e884ed79dae4b7f4f57323adf365, but not before: ** (totem:29213): WARNING **: Problem inhibiting the screensaver: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.gnome.SessionManager" does not exist As of the above commit, totem is not checking for a dbus name owner. priv->have_session_dbus is always getting set to true in screensaver_dbus_proxy_new_cb. Totem now always uses the fact that this variable is true to decide to go down the primary dbus codepath for inhibiting, and never down the fallback X11 path. This leads to that warning in on_inhibit_cb.
Created attachment 195697 [details] [review] scrsaver: Force gnome-session being present If gnome-session isn't present, we should error out earlier.
The problem actually is that I wouldn't expect to have a GDBusProxy at all if gnome-session wasn't present. The attached patch should make it error out in screensaver_dbus_proxy_new_cb() as expected. Could you please check?
Please reopen if it doesn't fix the problem Attachment 195697 [details] pushed as b568b23 - scrsaver: Force gnome-session being present