mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #58] Firejailed Gwenview cannot open filenames with blanks #28
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @curiosity-seeker on GitHub (Sep 8, 2015).
Original GitHub issue: https://github.com/netblue30/firejail/issues/58
I've noticed a strange problem with my firejailed VLC. Whenever I try to open, e.g., a video whose filename contains a blank or is located in a directory with a blank, VLC opens and I get an error like the following (for the file "/media/Multimedia/Filme/Die Tribute von Panem - The Hunger Games.avi"):

Note that this problem does not occur if I open VLC directly and navigate to that file, and it does not occur with an un-firejailed VLC. Rather, it only occurs if I want to open that file with firejailed VLC in a filemanager (Krusader or Dolphin - I'm running KDE Plasma 5 on Arch Linux). A similar problem happens if I want to open pictures with blanks in their filenames in firejailed Gwenview.
@ghost commented on GitHub (Sep 8, 2015):
If you could please post the exact command line that you use to start firejail, we can help diagnose the problem.
It sounds like a situation where firejail is getting started from a shortcut like
firejail vlc $1- in this case the$1gets expanded without protecting the spaces in the filename. Is it something like that?@curiosity-seeker commented on GitHub (Sep 8, 2015):
Thanks for your reply. The exact command line in the KDE menu entry (and in the corresponding desktop file in ~/.local/share/applications) is:
firejail --profile=/home/xxx/.config/firejail/vlc.profile /usr/bin/vlc --started-from-file %U
@curiosity-seeker commented on GitHub (Sep 8, 2015):
FWIW, I've just tried to start that video without the
--started-from-file %U
switches but with the the same result.
@netblue30 commented on GitHub (Sep 8, 2015):
Add a --shell=none, like this:
@curiosity-seeker commented on GitHub (Sep 8, 2015):
Wow! That solved it, indeed! Thank you very much! Can you explain why?
However, that similar problem with Gwenview is not yet really solved. The command line for it is:
firejail --profile=/home/xxx/.config/firejail/gwenview.profile gwenview %U
When opening pictures with blank(s) Gwenview opens with just a line that say something like
Basisordner > tmp > org.kde.gwenview-hNwKkl
After adding --shell=none Gwenview displays the folder symbol where the picture is located and I can navigate to it. An improvement, indeed, but the picture itself isn't immediately opened as it should. Do you have an idea how to circumvent this problem?
@netblue30 commented on GitHub (Sep 8, 2015):
It all depends on how the file manager starts vlc. If they start the program in a shell, and firejail also using a shell to start the program, between the two shells the file name gets split into several file names. So the fix is not to let firejail to start a second shell.
I'll look into gwneview, thanks for the bug.
@curiosity-seeker commented on GitHub (Sep 9, 2015):
FWIW, --shell=none also solves the same problem for a firejailed LibreOffice. Just as a reference for a possible new issue ... ;-)
@netblue30 commented on GitHub (Sep 10, 2015):
Thanks!
@curiosity-seeker commented on GitHub (Sep 22, 2015):
I suggest that you add
shell none
to the deafult VLC profile as it solves this issue. Or are you looking for a general solution as this issue is still open?
@netblue30 commented on GitHub (Sep 23, 2015):
Thanks, I'll look for a more general solution, otherwise I'll end up with "shell none" allover the place.
@curiosity-seeker commented on GitHub (Oct 24, 2015):
I found this post which seems to be relevant for the problem discussed here. I can confirm that
shell nonedoes no longer solve the problem with the newest gwenview version but the start script in that post does!@netblue30 commented on GitHub (Oct 24, 2015):
Thanks, I'll take a look.
@brunonova commented on GitHub (Nov 17, 2015):
I also noticed this issue when I double-clicked an HTML file. The sandoxed Firefox failed to open the file. Opening the file from the command-line didn't work.
Adding
shell noneto the profile fixes the issue.This doesn't work:
But this works:
When the program is started through a shell, could you add
"or'characters around every argument?@netblue30 commented on GitHub (Dec 29, 2015):
I think this is fixed in new version, 0.9.36.