Package: xdg-utils Version: 1.1.0~rc1+git20111210-6 Severity: normal Dear Maintainer,
when I run xdg-open with PDF file, my pdf viewer (okular) is called with wrong arguments. This causes it to open two windows - one with the requesed pdf file and one which attempts to open file named "%i". The latter attempt fails and I have to confirm the error message and close the unwanted window manually. This is annoying. Details: $ XDG_UTILS_DEBUG_LEVEL=5 xdg-open x.pdf DE generic Running mimetype -b "/home/me/x.pdf" Checking /home/me/.local/share//applications/mimeapps.list /home/me/.local/share:/usr/local/share/:/usr/share/ My /home/me/.local/share//applications/mimeapps.list contains the following line: application/pdf=kde4-okularApplication_pdf.desktop kde4-okularApplication_pdf.desktop contains 'Exec=okular %U %i -caption "%c"' When I run 'bash -x xdg-open x.pdf' the tail of the output is: ++ grep -E '^Exec(\[[^]=]*])?=' /usr/share//applications/kde4/okularApplication_pdf.desktop ++ cut -d= -f 2- ++ last_word ++ read first rest ++ echo '%U %i -caption "%c"' + arguments='%U %i -caption "%c"' ++ echo x.pdf ++ sed -e 's/[&\\]/\\&/g' + local sed_escaped_url=x.pdf ++ echo %U %i -caption '"%c"' ++ sed -e 's*%[fFuU]*"x.pdf"*g' + arguments_exec='"x.pdf" %i -caption "%c"' + '[' -x /usr/bin/okular ']' + grep -iq '%[fFuU]' + echo %U %i -caption '"%c"' + eval /usr/bin/okular '"x.pdf"' %i -caption '"%c"' ++ /usr/bin/okular x.pdf %i -caption %c -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-1-amd64 (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 libfile-mimeinfo-perl 0.16-1 ii libnet-dbus-perl 1.0.0-1+b1 ii libx11-protocol-perl 0.56-2 ii x11-utils 7.6+4 ii x11-xserver-utils 7.6+3 Versions of packages xdg-utils suggests: ii gvfs-bin 1.10.1-2 -- 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