mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3202] Dino does not open images in image viewer (gwenview) #2003
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#2003
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 @ericschdt on GitHub (Feb 5, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3202
If I run Dino outside of the sandbox it is a capable of opening images in gwenview.
However, once started firejailed, nothing happens if I press on the "open image" button.
dino_firejail_debug.log.txt
System
firejail 0.9.62
Dino 0.1.0
Archlinux
Additional notes
dino.profile from git master
gwenview.profile from git master
@ericschdt commented on GitHub (Feb 5, 2020):
Similar to https://github.com/netblue30/firejail/issues/2655#issuecomment-484176771
makes it working, but if I invoke it now without the relaxed whitelisting
even if finally add
it still does not work. :-S
@ghost commented on GitHub (Feb 6, 2020):
I remember mentioning git profiles in #3200. Although on occasion that might seem to 'fix' things, it is not the recommended way of running firejail. Mixing profiles from git with a differently versioned firejail binary can be tricky and will bite you sooner or later. There simply is no guarantee that included functionality in the profile files installed under /etc/firejail is also present in the firejail binary. It also makes reporting issues and debugging them a bit more complicated for people trying to help. Seeing that your OS is Arch, if you want to try the latest firejail codebase, I suggest using firejail-git from the AUR. That way at least you have a proper 'base' set of files to start with and avoid version-induced incompatibilities. Just a suggestion.
Now, to the issue at hand. You mentioned that 'firejail --build dino' first made it work, but later on you mention invoking 'firejail dino' doesn't work. IMHO I think you might have missed saving the generated profile. The
--buildoption is a one-time thing. If you want to keep using the generated profile, you will have to either save it to ~/.config/firejail manually (and edit it if needed) or use the--build=/path/to/profile instead. Can you show the generated profile here please?@ericschdt commented on GitHub (Feb 7, 2020):
I did it now (correctly, thanks!) and it works.
Sure, here it is, I just stripped a few private folders:
@ghost commented on GitHub (Feb 7, 2020):
That looks fine. You could compare it with the default /etc/firejail/dino.profile to harden it a bit more while testing it still does what you want. Usual suspects that are good to have are options like:
@ericschdt commented on GitHub (Feb 9, 2020):
@glitsj16 Thanks, I also added the recent list to
dino.local. It works fine for now!@ericschdt commented on GitHub (Feb 9, 2020):
Edit: For some reasons using Dino with
firejail --build=path/dino.local dinoworks fine, but afterwards starting Dino (*) makes my accounts no longer go online. :-/Here are the erros dino throws:
I already tried to whitelist
but with no success.
Edit: I should have overwritten
dino.profileso at least the/proc/[number]/rooterror is gone and as well as thedconferror. Now I am still stuck with thexmpp-vala-CRITICALerror and;)
@ericschdt commented on GitHub (Feb 9, 2020):
I took the original profile and for some reasons it now works (though Dino freezes with firejail sometimes :-( )When I symlinked it again, I forgot about the cache and it actually started
/usr/bin/dinoand it still does not work. I am giving it up for now...The following needs to be done anyway:
Though, I had to unblacklist the follwing folders in
gwenview.localno allow gwenview to view the images.
@ericschdt commented on GitHub (Feb 9, 2020):
Eh, here's the finally working solution:
dino.profilegwenview.local@ericschdt commented on GitHub (Feb 9, 2020):
@rusty-snake @glitsj16
it needs to read:
private-bin dino,gio-launch-desktop,gwenviewDino won't start
gwenviewwithoutgio-launch-desktop.OT: and for
gpgsupport it may needgpgsm,gpg,gpgconf.