Package: xdg-utils Version: 1.1.0~rc1+git20111210-7.3 Severity: important Tags: patch
Dear Maintainer, xdg-open garbles exec arguments when opening files with something that has [Desktop Action...] sections. (open_generic funcion) i.e. 'xdg-open somefile.pdf' will launch: /usr/bin/qpdfview --unique somefile.pdf qpdfview --unique --choose-instance somefile.pdf qpdfview somefile.pdf instead of /usr/bin/qpdfview --unique somefile.pdf This happens because open_generic_xdg_mime funcion grabs all Exec values from entire .desktop file regardless of sections. To correct this, section filter should be added with this patch: 8<----------------------- 550c550 < set -- $(sed -n 's/^Exec\(\[[^]]*\]\)\{0,1\}=//p' "$file") --- > set -- $(sed -n '/^[[:space:]]*\[[Dd]esktop > [Ee]ntry\]/,/^[[:space:]]*\[/p' "$file" | sed > 's/^Exec\(\[[^]]*\]\)\{0,1\}=//p') 8<----------------------- This way xdg-open will only use Exec from Desktop Entry section. -- System Information: Debian Release: 8.0 APT prefers testing APT policy: (900, 'testing'), (400, 'unstable'), (300, 'experimental') Architecture: i386 (i686) Kernel: Linux 3.16.0-4-686-pae (SMP w/2 CPU cores) Locale: LANG=ru_RU.UTF-8@ISO, LC_CTYPE=ru_RU.UTF-8@ISO (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.26-1 ii libnet-dbus-perl 1.0.0-2+b2 ii libx11-protocol-perl 0.56-6 ii x11-utils 7.7+2 ii x11-xserver-utils 7.7+3+b1 Versions of packages xdg-utils suggests: pn gvfs-bin <none> -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org