Package: xdg-utils Version: 1.0.2+cvs20100307-2 Severity: normal I can still see the bug, and applying the patch already attached to this bug report fixes it. Attached is a slightly updated patch, if it helps: I didn't modify the patch, but just fixed some conflict while applying it to the latest version.
Any reason why this hasn't been applied, yet? Thanks, -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.32-trunk-686 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash xdg-utils depends on no packages. Versions of packages xdg-utils recommends: ii chromium-browser [w 5.0.375.127~r55887-1 Chromium browser ii epiphany-browser [w 2.30.3-1 Intuitive GNOME web browser ii file 5.04-5 Determines file type using "magic" ii iceweasel [www-brow 3.5.11-2 Web browser based on Firefox ii konqueror [www-brow 4:4.4.5-1 advanced file manager, web browser ii links [www-browser] 2.3~pre1-1 Web browser running in text mode ii mime-support 3.48-1 MIME files 'mime.types' & 'mailcap ii shared-mime-info 0.71-3 FreeDesktop.org shared MIME databa ii w3m [www-browser] 0.5.2-9 WWW browsable pager with excellent ii x11-utils 7.5+4 X11 utilities ii x11-xserver-utils 7.5+2 X server utilities Versions of packages xdg-utils suggests: ii gvfs-bin 1.6.3-1 userspace virtual filesystem - bin -- no debconf information
--- /usr/bin/xdg-screensaver 2010-09-15 13:08:29.000000000 +0200 +++ /tmp/xdg-screensaver 2010-10-02 16:41:32.494406314 +0200 @@ -335,6 +335,7 @@ elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome; 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; + else DE="" fi } @@ -429,8 +430,12 @@ xscreensaver) screensaver_xscreensaver "$1" ;; - esac + '') + screensaver_xserver "$1" + ;; + esac + if [ "$1" = "suspend" ] ; then # Save DPMS state if xset -q | grep 'DPMS is Enabled' > /dev/null 2> /dev/null; then @@ -676,6 +681,49 @@ return 1 fi ;; + + *) + echo "ERROR: Unknown command '$1'" >&2 + return 1 + ;; + esac +} + +screensaver_xserver() +{ + case "$1" in + suspend) + xset s off > /dev/null + result=$? + ;; + + resume) + xset s default > /dev/null + result=$? + ;; + + activate) + xset s activate > /dev/null + result=$? + ;; + + reset) + xset s reset > /dev/null + result=$? + ;; + + status) + timeout=`xset q | sed '/^Screen Saver:/,/^[^ ]/ { s/.*timeout: *\([0-9]*\).*/\1/; t }; d'` + result=$? + if [ "$timeout" -gt 0 ]; then + echo "enabled" + elif [ "$timeout" -eq 0 ]; then + echo "disabled" + else + echo "ERROR: xset q did not report the screensaver timeout" >&2 + return 1 + fi + ;; *) echo "ERROR: Unknown command '$1'" >&2