Bug 311373 - can't open paths containing spaces from CLI
Summary: can't open paths containing spaces from CLI
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.15.3
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-08 21:40 UTC by Sven Brauch
Modified: 2012-12-08 22:35 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Brauch 2012-12-08 21:40:46 UTC
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"
Comment 1 Sven Brauch 2012-12-08 21:41:36 UTC
... that should read "without the quotes", of course. sorry.
Comment 2 Albert Astals Cid 2012-12-08 22:23:57 UTC
Works fine for me, which distro are you using? Are you using distro packages or self compiled ones?
Comment 3 Sven Brauch 2012-12-08 22:30:26 UTC
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...
Comment 4 Sven Brauch 2012-12-08 22:30:59 UTC
... I'm not quite awake right now. I meant "shell", not "terminal emulator". Sorry again. :)
Comment 5 Albert Astals Cid 2012-12-08 22:34:56 UTC
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 :-)
Comment 6 Sven Brauch 2012-12-08 22:35:50 UTC
Alright -- sorry about the noise :)
I'll go complain to the fish guys then, and see if they send me back here.