`xdg-screensaver lock` returns `ERROR: Unknown command 'lock'`
Paul Menzel
paulepanter at users.sourceforge.net
Tue Oct 30 08:04:45 PDT 2012
Am Dienstag, den 30.10.2012, 09:42 -0500 schrieb Rex Dieter:
> Paul Menzel wrote:
>
> > Dear freedesktop.org folks,
> >
> >
> > using Debian Sid/unstable with xdg-utils 1.1.0~rc1+git201112, trying
> > `xdg-screensaver` under the awesome window manager [1], I get the
> > following error.
> >
> > $ xdg-screensaver lock
> > ERROR: Unknown command 'lock'
> > $ echo $?
> > 4
> >
> > GNOME Screensaver is installed.
> >
> > gnome-screensaver 3.4.1-1
> >
> > Is that a known problem? Should I submit a bug report somewhere?
>
> Possible you're hitting (fixed since 2011-12-07):
> http://bugzilla.freedesktop.org/43575
>
> confirm if this commit fixes it for you:
> http://cgit.freedesktop.org/xdg/xdg-utils/commit/?id=a11624ac2878e1bf72825927739021f43f7f7d67
It is already included in my version.
$ grep -C 2 'dbus-send --print-reply' /usr/bin/xdg-screensaver
elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome;
elif [ x"$MATE_DESKTOP_SESSION_ID" != x"" ]; then DE=mate;
elif `dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.GetNameOwner string:org.gnome.SessionManager > /dev/null 2>&1` ; then DE=gnome;
elif xprop -root _DT_SAVE_MODE 2> /dev/null | grep ' = \"xfce4\"$' >/dev/null 2>&1; then DE=xfce;
elif xprop -root 2> /dev/null | grep -i '^xfce_desktop_window' >/dev/null 2>&1; then DE=xfce
--
xscreensaver-command -version 2> /dev/null | grep XScreenSaver > /dev/null && DE="xscreensaver"
# Consider "gnome-screensaver" a separate DE
dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.GetNameOwner string:org.gnome.ScreenSaver > /dev/null 2>&1 && DE="gnome_screensaver"
if [ "$action" = "resume" ] ; then
Does `xdg-screensaver` also start the screensaver process if it is not
running yet?
Thanks,
Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/xdg/attachments/20121030/b8887a58/attachment.pgp>
More information about the xdg
mailing list