Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listen to org.freedesktop.ScreenSaver events #300

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/gs-listener-dbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ static DBusHandlerResult gs_listener_message_handler (DBusConnection *connec
DBusMessage *message,
void *user_data);

#define GS_LISTENER_SERVICE "org.mate.ScreenSaver"
#define GS_LISTENER_PATH "/org/mate/ScreenSaver"
#define GS_LISTENER_INTERFACE "org.mate.ScreenSaver"
#define GS_LISTENER_SERVICE "org.freedesktop.ScreenSaver"
#define GS_LISTENER_PATH "/org/freedesktop/ScreenSaver"
#define GS_LISTENER_INTERFACE "org.freedesktop.ScreenSaver"

/* systemd logind */
#define SYSTEMD_LOGIND_SERVICE "org.freedesktop.login1"
Expand Down Expand Up @@ -1370,7 +1370,7 @@ do_introspect (DBusConnection *connection,

/* ScreenSaver interface */
xml = g_string_append (xml,
" <interface name=\"org.mate.ScreenSaver\">\n"
" <interface name=\"org.freedesktop.ScreenSaver\">\n"
" <method name=\"Lock\">\n"
" </method>\n"
" <method name=\"Unlock\">\n"
Expand Down
6 changes: 3 additions & 3 deletions src/mate-screensaver-command.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
#include <dbus/dbus-glib.h>
#include <dbus/dbus-glib-lowlevel.h>

#define GS_SERVICE "org.mate.ScreenSaver"
#define GS_PATH "/org/mate/ScreenSaver"
#define GS_INTERFACE "org.mate.ScreenSaver"
#define GS_SERVICE "org.freedesktop.ScreenSaver"
#define GS_PATH "/org/freedesktop/ScreenSaver"
#define GS_INTERFACE "org.freedesktop.ScreenSaver"

static gboolean do_quit = FALSE;
static gboolean do_lock = FALSE;
Expand Down