[mythtv] Screen Saver testers needed!
Michael T. Dean
mtdean at thirdcontact.com
Thu Mar 19 15:06:19 UTC 2015
On 03/19/2015 09:56 AM, Steve E wrote:
> mate-screensaver
>
> I have no idea whether that uses DBus control or not.
It does. The mate-screensaver-command utility actually uses DBus
messaging to control mate-screensaver.
What happens if you change line 13 of dbus-screensaver.cpp from:
m_interface(new QDBusInterface("org.freedesktop.ScreenSaver",
"/ScreenSaver",
"org.freedesktop.ScreenSaver",
m_bus))
to
m_interface(new QDBusInterface("org.mate.ScreenSaver",
"/org/mate/ScreenSaver",
"org.mate.ScreenSaver",
m_bus))
i.e. change the service, path, and interface arguments to the
QDBusInterface constructor to use the mate-specific ones.
Standards. They just make things so much easier for everyone. It's
good there are so many of them for screensaver control. As Gary B so
often (and rightly) points out: http://www.xkcd.com/927/
FWIW, though, if using mate-specific DBus arguments works and it's
decided not to include mate-specific code in MythTV, it would be simple
to make a wrapper for mate-screensaver-command that works with the
existing xscreensaver support in MythTV. (Basically just have create an
executable script called xscreensaver-command that supports -version,
such that it returns an error code if mate-screensaver isn't running,
and -deactivate, such that it calls mate-screensaver-command -poke .
I'd be happy to help with the wrapper if that's the direction Stuart
decides to go.)
Mike
More information about the mythtv-dev
mailing list