Bug#738936: /usr/bin/okular: okular.desktop config sets incorrect Exec key
Package: okular
Version: 4:4.11.5-1
File: /usr/bin/okular
Severity: normal
Dear Maintainer,
I am running xmonad on Debian testing. I have installe okular as my
pdf reader. When okular is launced via xdg-open, e.g., to open pdfs
from chromium or conkeror, it opens two windows at once. The first
window is the file, displayed properly. The second window is okular
with an empty view (i.e., no file loaded, but otherwise ready to use).
This second window also spawns a popup warning with the message "Could
not open %i".
I expected to have a single window open, with the document displayed properly.
I believe this relates to a problem in the configuration files in
/usr/share/applications/kde4. The okular files contain the line
Exec=okular %U %i -caption %c
Changing this to
Exec=okular %U -icon %i -caption %c
appears to resolve the problem. I'm not sure if this is correct, or
just happens to work for me running xmonad. Perhaps there is general
solution. Either way, as it is this is broken for my setup.
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.12-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages okular depends on:
ii kde-runtime 4:4.11.5-1
ii libc6 2.17-97
ii libfreetype6 2.5.2-1
ii libjpeg8 8d-2
ii libkactivities6 4:4.11.5-1
ii libkdecore5 4:4.11.5-1
ii libkdeui5 4:4.11.5-1
ii libkio5 4:4.11.5-1
ii libkparts4 4:4.11.5-1
ii libkprintutils4 4:4.11.5-1
ii libkpty4 4:4.11.5-1
ii libokularcore3 4:4.11.5-1
ii libphonon4 4:4.7.1-1
ii libpoppler-qt4-4 0.22.5-4
ii libqca2 2.0.3-5
ii libqimageblitz4 1:0.0.6-4
ii libqt4-dbus 4:4.8.5+git209-g718fae5+dfsg-1
ii libqt4-declarative 4:4.8.5+git209-g718fae5+dfsg-1
ii libqt4-svg 4:4.8.5+git209-g718fae5+dfsg-1
ii libqt4-xml 4:4.8.5+git209-g718fae5+dfsg-1
ii libqtcore4 4:4.8.5+git209-g718fae5+dfsg-1
ii libqtgui4 4:4.8.5+git209-g718fae5+dfsg-1
ii libsolid4 4:4.11.5-1
ii libspectre1 0.2.7-2
ii libstdc++6 4.8.2-14
ii phonon 4:4.7.1-1
ii zlib1g 1:1.2.8.dfsg-1
okular recommends no packages.
Versions of packages okular suggests:
ii ghostscript 9.05~dfsg-8+b1
pn jovie <none>
pn okular-extra-backends <none>
ii poppler-data 0.4.6-4
ii texlive-binaries 2013.20130729.30972-2+b2
ii unrar 1:5.0.10-1
-- no debconf information
Reply to: