Okular opens files passed as CLI arguments in the viewer after startup. If you pass multiple documents, multiple viewer instances open up. However if you pass a document name containing spaces (even if it's correctly escaped or quoted) then still n viewers will start, trying to open the document name split at the spaces. I consider this behaviour a bug. Reproducible: Always Steps to Reproduce: 1. rename any pdf file to "a b.pdf" (without the spaces) 2. type okular "a b.pdf" or okular a\ b.pdf Actual Results: two instances of okular with error messages open up, trying to open "a" and "b.pdf" Expected Results: okular opens "a b.pdf"
... that should read "without the quotes", of course. sorry.
Works fine for me, which distro are you using? Are you using distro packages or self compiled ones?
I just noticed, it is apparently related to my terminal emulator. With bash it works, but with fish (the friendly interactive shell) it doesn't. It's still weird, since for e.g. kate it works fine. So a bug in the shell seems unlikely...
... I'm not quite awake right now. I meant "shell", not "terminal emulator". Sorry again. :)
I'll close the bug then, not much we can do here if the shell is playing dirty tricks on us. I suggest contacting the fish guys and asking what's going on. Thanks for caring about Okular :-)
Alright -- sorry about the noise :) I'll go complain to the fish guys then, and see if they send me back here.