Package: xdg-utils
Version: 1.1.0~rc1+git20111210-7.4
Severity: normal
Tags: patch
Dear Maintainer,
Since I upgraded to KDE 5 xdg-screensaver is trying to use dcop instead of the
newer
dbus-send commands. The culprit is pretty obvious:
if [ x"$KDE_SESSION_VERSION" = x"4" ]; then
screensaver_freedesktop "$1"
else
screensaver_kde "$1"
fi
It would make much more sense to only use screensaver_kde for KDE 3 or lower so
this
does not happen again in the future (or to consider dcop to be so hopelessly
outdated
that keeping the corresponding code is pointless).
So I'm attaching a patch to fix this.
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.1.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
xdg-utils depends on no packages.
Versions of packages xdg-utils recommends:
ii libfile-mimeinfo-perl 0.27-1
ii libnet-dbus-perl 1.1.0-3
ii libx11-protocol-perl 0.56-7
ii x11-utils 7.7+3
ii x11-xserver-utils 7.7+4
Versions of packages xdg-utils suggests:
ii gvfs-bin 1.24.2-1
-- no debconf information
-- debsums errors found:
debsums: changed file /usr/bin/xdg-screensaver (from xdg-utils package)
--- /usr/bin/xdg-screensaver.orig 2015-09-05 12:55:38.297133921 +0200
+++ /usr/bin/xdg-screensaver 2015-09-05 12:58:35.672418788 +0200
@@ -527,11 +527,10 @@
case "$DE" in
kde)
- if [ x"$KDE_SESSION_VERSION" = x"4" ]; then
- screensaver_freedesktop "$1"
- else
- screensaver_kde "$1"
- fi
+ case "$KDE_SESSION_VERSION" in
+ 1|2|3) screensaver_kde "$1" ;;
+ *) screensaver_freedesktop "$1" ;;
+ esac
;;
gnome_screensaver)