Running this one-liner, as root, fixes it in the meantime: sed -r -i 's/Exec=okular %U %i -caption %c/Exec=okular %U -icon %i -caption %c/' /usr/share/applications/kde4/okular*.desktop Also, this bug happened at least on Okular 0.16.5 too. Reproducible: Always Steps to Reproduce: 1. Run "xdg-open /path/to/file.pdf" in a terminal Actual Results: -An okular window appears displaying file.pdf -An empty okular window with title '%c' appears -A popup window saying "could not open /home/myuser/%i" appears Expected Results: Only the file.pdf okular window appears
If you read http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s06.html it clearly states that you have to write %i in your Exec line and that it will be replaced by "--icon WHATEVER_IS_IN_YOUR_ICON_KEY" So that must be a xdg-open bug. FWIW xdg-open works fine here so you may have an older version of xdg-open?
Seems this is an xdg-open bug: https://bugs.launchpad.net/ubuntu/+source/xdg-utils/+bug/928680