[GH-ISSUE #166] firejail ignores shell escaping #117

Closed
opened 2026-05-05 05:05:23 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @rahiel on GitHub (Nov 28, 2015).
Original GitHub issue: https://github.com/netblue30/firejail/issues/166

Using firejail 0.9.34 on Ubuntu 15.10. I can open a pdf with evince document\ with\ spaces.pdf, but with firejail evince document\ with\ spaces.pdfit fails, here some of the error messages:

Child process initialized
Error launching evince file:///home/rahiel/Documents/with: Failed to execute child process "/usr/bin/evince" (Operation not permitted)
Error launching evince file:///home/rahiel/Documents/spaces.pdf: Failed to execute child process "/usr/bin/evince" (Operation not permitted)

** (evince:1): WARNING **: Error when getting information for file '/home/rahiel/Documents/document': No such file or directory

Same with other shellescaped characters, firejail evince document_\(parens\).pdf:

/bin/bash: -c: line 0: syntax error near unexpected token `('
/bin/bash: -c: line 0: `evince document_(parens).pdf '

I also got this (unrelated) error message:

(evince:1): Gtk-WARNING **: Attempting to read the recently used resources file at `/home/rahiel/.local/share/recently-used.xbel', but the parser failed: Failed to open file '/home/rahiel/.local/share/recently-used.xbel': Permission denied.
Originally created by @rahiel on GitHub (Nov 28, 2015). Original GitHub issue: https://github.com/netblue30/firejail/issues/166 Using firejail 0.9.34 on Ubuntu 15.10. I can open a pdf with `evince document\ with\ spaces.pdf`, but with `firejail evince document\ with\ spaces.pdf`it fails, here some of the error messages: ``` Child process initialized Error launching evince file:///home/rahiel/Documents/with: Failed to execute child process "/usr/bin/evince" (Operation not permitted) Error launching evince file:///home/rahiel/Documents/spaces.pdf: Failed to execute child process "/usr/bin/evince" (Operation not permitted) ** (evince:1): WARNING **: Error when getting information for file '/home/rahiel/Documents/document': No such file or directory ``` Same with other shellescaped characters, `firejail evince document_\(parens\).pdf`: ``` /bin/bash: -c: line 0: syntax error near unexpected token `(' /bin/bash: -c: line 0: `evince document_(parens).pdf ' ``` I also got this (unrelated) error message: ``` (evince:1): Gtk-WARNING **: Attempting to read the recently used resources file at `/home/rahiel/.local/share/recently-used.xbel', but the parser failed: Failed to open file '/home/rahiel/.local/share/recently-used.xbel': Permission denied. ```
Author
Owner

@netblue30 commented on GitHub (Nov 29, 2015):

Fixed on master branch. A workaround would be to put the file name into "":

firejail evince "document\ with\ spaces.pdf"
<!-- gh-comment-id:160416599 --> @netblue30 commented on GitHub (Nov 29, 2015): Fixed on master branch. A workaround would be to put the file name into "": ``` firejail evince "document\ with\ spaces.pdf" ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#117
No description provided.