[GH-ISSUE #3171] [profile] firefox on 0.9.62 with sway/voidlinux won't start #1987

Closed
opened 2026-05-05 08:39:12 -06:00 by gitea-mirror · 5 comments
Owner

Originally created by @the-antz on GitHub (Jan 20, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3171

Hi,

firefox won't start with the profile 0.9.62 on sway/voidlinux.

It works when I remove the lines
whitelist /usr/share/mozilla
include whitelist-usr-share-common.inc
from /etc/firejail/firefox.profile

I tried to create a new file /etc/firejail/firefox.local with
ignore whitelist /usr/share/mozilla
ignore include whitelist-usr-share-common.inc
but that doesn't work.

I tried to find what's missing by running it with firejail --trace /usr/bin/firefox but that didn't give me any clues.

Originally created by @the-antz on GitHub (Jan 20, 2020). Original GitHub issue: https://github.com/netblue30/firejail/issues/3171 Hi, firefox won't start with the profile 0.9.62 on sway/voidlinux. It works when I remove the lines `whitelist /usr/share/mozilla` `include whitelist-usr-share-common.inc` from /etc/firejail/firefox.profile I tried to create a new file /etc/firejail/firefox.local with `ignore whitelist /usr/share/mozilla` `ignore include whitelist-usr-share-common.inc` but that doesn't work. I tried to find what's missing by running it with `firejail --trace /usr/bin/firefox` but that didn't give me any clues.
Author
Owner

@rusty-snake commented on GitHub (Jan 20, 2020):

Hi @the-antz,

Is there any error message in the console?

Can you run firejail --trace=ff.trace --noprofile firefox (when firefox is not running) (just start and close it). Then post the output of grep -oE " /usr/share//?[^/:]+" ff.trace | sort -u here.

PS: see also #2153

<!-- gh-comment-id:576303008 --> @rusty-snake commented on GitHub (Jan 20, 2020): Hi @the-antz, Is there any error message in the console? Can you run `firejail --trace=ff.trace --noprofile firefox` (when firefox is not running) (just start and close it). Then post the output of `grep -oE " /usr/share//?[^/:]+" ff.trace | sort -u` here. PS: see also #2153
Author
Owner

@the-antz commented on GitHub (Jan 20, 2020):

You're quite an regex wizzard :).

Had to remove the asterisk but here's what it accesses:

/usr/share//mime
/usr/share/X11
/usr/share/applications
/usr/share/cursors
/usr/share/fontconfig
/usr/share/fonts
/usr/share/glib-2.0
/usr/share/gtk-3.0
/usr/share/icons
/usr/share/icu
/usr/share/locale
/usr/share/mime
/usr/share/mozilla
/usr/share/pixmaps
/usr/share/themes

edit: forgot an S in /usr/share/themes
Seems to be /usr/share/icu.
Trying that now..

<!-- gh-comment-id:576306621 --> @the-antz commented on GitHub (Jan 20, 2020): You're quite an regex wizzard :). Had to remove the asterisk but here's what it accesses: ``` /usr/share//mime /usr/share/X11 /usr/share/applications /usr/share/cursors /usr/share/fontconfig /usr/share/fonts /usr/share/glib-2.0 /usr/share/gtk-3.0 /usr/share/icons /usr/share/icu /usr/share/locale /usr/share/mime /usr/share/mozilla /usr/share/pixmaps /usr/share/themes ``` edit: forgot an S in `/usr/share/themes` Seems to be /usr/share/icu. Trying that now..
Author
Owner

@the-antz commented on GitHub (Jan 20, 2020):

Adding /usr/share/icu to the whitelist fixes it. Thx for the quick help :).

Should I add it to whitelist-usr-share-common.inc and make a PR?

<!-- gh-comment-id:576308946 --> @the-antz commented on GitHub (Jan 20, 2020): Adding /usr/share/icu to the whitelist fixes it. Thx for the quick help :). Should I add it to whitelist-usr-share-common.inc and make a PR?
Author
Owner

@rusty-snake commented on GitHub (Jan 20, 2020):

make a PR?

yes, please.

Should I add it to whitelist-usr-share-common.inc

depending on the content of icu it shoudl be added to wusc or to firefox.

<!-- gh-comment-id:576315096 --> @rusty-snake commented on GitHub (Jan 20, 2020): > make a PR? yes, please. > Should I add it to whitelist-usr-share-common.inc depending on the content of icu it shoudl be added to wusc or to firefox.
Author
Owner

@the-antz commented on GitHub (Jan 20, 2020):

The only file I have there is /usr/share/icu/64.2/icudt64l.dat. It seems to be some unicode stuff (http://site.icu-project.org/), not specific to firefox.

<!-- gh-comment-id:576321229 --> @the-antz commented on GitHub (Jan 20, 2020): The only file I have there is `/usr/share/icu/64.2/icudt64l.dat`. It seems to be some unicode stuff (http://site.icu-project.org/), not specific to firefox.
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#1987
No description provided.