#738936 /usr/bin/okular: okular.desktop config sets incorrect Exec key

Package:
okular
Source:
okular
Description:
universal document viewer
Submitter:
Tyler Smith
Date:
2017-12-04 12:33:03 UTC
Severity:
normal
#738936#5
Date:
2014-02-13 22:57:15 UTC
From:
To:
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.

#738936#10
Date:
2017-12-04 11:45:09 UTC
From:
To:
Hello,

I have the same problem with fvwm2 and my solution was to export XDG_CURRENT_DESKTOP=KDE before session start.

Best Regards,
Juri Grabowski