Inhibiting xfce4-power-manager (xfpm) via its dbus interface does not propagate to xfce4-screensaver (xfss) through their dbus interface. Debugging shows that this is because at startup, xfss's dbus interface can not be found and xfpm falls back to xscreensaver-command: (xfce4-power-manager:1468484): GLib-GIO-CRITICAL **: 14:14:39.987: g_dbus_proxy_new_for_bus_sync: assertion 'g_variant_is_object_path (object_path)' failed DBG[xfce-screensaver.c:271] xfce_screensaver_setup(): using command line screensaver interface DBG[xfce-screensaver.c:149] xfce_screensaver_set_property(): saver->priv->heartbeat_command xscreensaver-command -deactivate DBG[xfce-screensaver.c:156] xfce_screensaver_set_property(): saver->priv->lock_command xscreensaver-command -lock DBG[xfce-screensaver.c:156] xfce_screensaver_set_property(): saver->priv->lock_command xfce4-screensaver-command --lock The relevant code and necessary change is: --- xfce4-power-manager-1.6.5/src/xfce-screensaver.c.orig 2020-01-10 13:52:59.562615853 +0100 +++ xfce4-power-manager-1.6.5/src/xfce-screensaver.c 2020-01-10 13:56:53.053352597 +0100 @@ -260,7 +260,7 @@ saver->priv->screensaver_type = SCREENSAVER_TYPE_GNOME; } else if (screen_saver_proxy_setup (saver, "org.xfce.ScreenSaver", - "/org.xfce/ScreenSaver", + "/org/xfce/ScreenSaver", "org.xfce.ScreenSaver")) { DBG ("using Xfce screensaver daemon"); With this change applied, xfpm debug messages report: DBG[xfce-screensaver.c:214] screen_saver_proxy_setup(): proxy owner: :1.919 DBG[xfce-screensaver.c:266] xfce_screensaver_setup(): using Xfce screensaver daemon DBG[xfce-screensaver.c:149] xfce_screensaver_set_property(): saver->priv->heartbeat_command xscreensaver-command -deactivate DBG[xfce-screensaver.c:156] xfce_screensaver_set_property(): saver->priv->lock_command xscreensaver-command -lock DBG[xfce-screensaver.c:156] xfce_screensaver_set_property(): saver->priv->lock_command xfce4-screensaver-command --lock and inhibitors are propagated as expected.
Simon Steinbeiss referenced this bugreport in commit 26d621a8d30c1c2d0fcf56fd89379ef8f9f8ada6 Fix inhibiting xfce4-screensaver (Bug #16364) https://git.xfce.org/xfce/xfce4-power-manager/commit?id=26d621a8d30c1c2d0fcf56fd89379ef8f9f8ada6
Michael Weiser referenced this bugreport in commit 5fde4b2aac1beda23b1b6c391773a67515ca45eb Fix inhibiting xfce4-screensaver (Bug #16364) https://git.xfce.org/xfce/xfce4-power-manager/commit?id=5fde4b2aac1beda23b1b6c391773a67515ca45eb
Thanks for the patch, applied to both the xfce 4.14 and the master branch.
I gave git master a quick test and as expected it now works as intended. Thanks!
This fix had this unfortunate side effect: https://bugzilla.xfce.org/show_bug.cgi?id=16522