[GH-ISSUE #7040] Firefox 147+ now uses XDG paths #3463

Open
opened 2026-05-05 10:00:50 -06:00 by gitea-mirror · 5 comments
Owner

Originally created by @SkewedZeppelin on GitHub (Jan 22, 2026).
Original GitHub issue: https://github.com/netblue30/firejail/issues/7040

~/.mozilla is no longer used in favor of ~/.config/mozilla and ~/.cache/mozilla

I was going to make a PR for this of firefox-common.profile, but then I noticed all the additional non-browser profiles that reference ~/.mozilla and wanted to ask if we should re-evaulate those exceptions.

Also of note: Firefox doesn't appear to attempt migration of this directory just yet, but fresh installs/starts with Firejail current will be lost on close.

Originally created by @SkewedZeppelin on GitHub (Jan 22, 2026). Original GitHub issue: https://github.com/netblue30/firejail/issues/7040 ~/.mozilla is no longer used in favor of ~/.config/mozilla and ~/.cache/mozilla I was going to make a PR for this of firefox-common.profile, but then I noticed all the additional non-browser profiles that reference ~/.mozilla and wanted to ask if we should re-evaulate those exceptions. Also of note: Firefox doesn't appear to attempt migration of this directory just yet, but fresh installs/starts with Firejail current will be lost on close.
gitea-mirror added the
help wanted
sandbox-ipc
labels 2026-05-05 10:00:50 -06:00
Author
Owner
<!-- gh-comment-id:3786533644 --> @rusty-snake commented on GitHub (Jan 22, 2026): https://github.com/netblue30/firejail/discussions/6841#discussioncomment-15388051
Author
Owner

@SkewedZeppelin commented on GitHub (Jan 22, 2026):

@rusty-snake thanks
TIL discussions don't show up in issue search tab even if you remove the is:issue filter.

<!-- gh-comment-id:3786573001 --> @SkewedZeppelin commented on GitHub (Jan 22, 2026): @rusty-snake thanks TIL discussions don't show up in issue search tab even if you remove the `is:issue` filter.
Author
Owner

@netblue30 commented on GitHub (Jan 23, 2026):

From @lucasmz-dev - https://github.com/netblue30/firejail/discussions/6841#discussioncomment-15388051

Firefox will start using .config/mozilla or .config/firefox (unsure?) in 147. I suppose a lot of people use firejail with firefox, and it should be able to do deal with that:

That's easy, we've done it for some other programs as well:

(from gimp.profile)
noblacklist ${HOME}/.config/GIMP
noblacklist ${HOME}/.gimp*

We can add both ~/.config/mozilla and ~/./config/firefox. We'll clean them up later if necessary.

<!-- gh-comment-id:3787626219 --> @netblue30 commented on GitHub (Jan 23, 2026): From @lucasmz-dev - https://github.com/netblue30/firejail/discussions/6841#discussioncomment-15388051 > Firefox will start using .config/mozilla or .config/firefox (unsure?) in 147. I suppose a lot of people use firejail with firefox, and it should be able to do deal with that: That's easy, we've done it for some other programs as well: ````` (from gimp.profile) noblacklist ${HOME}/.config/GIMP noblacklist ${HOME}/.gimp* ````` We can add both ~/.config/mozilla and ~/./config/firefox. We'll clean them up later if necessary.
Author
Owner

@kmk3 commented on GitHub (Feb 17, 2026):

~/.mozilla is no longer used in favor of ~/.config/mozilla and
~/.cache/mozilla

I was going to make a PR for this of firefox-common.profile, but then I
noticed all the additional non-browser profiles that reference ~/.mozilla and
wanted to ask if we should re-evaulate those exceptions.

Also of note: Firefox doesn't appear to attempt migration of this directory
just yet, but fresh installs/starts with Firejail current will be lost on
close.

To fix the immediate breakage on new installs, I created a PR to just add the
new dir everywhere that the old dir appears:

For the sake of maintenance, I agree that it would be better to avoid having to
copy these paths into profiles just so links can be opened in a web browser.

I think the following would be an improvement:

For firefox forks, leave the migration wizard comment (with the firefox paths)
as is.

For programs that only try to open the firefox executable directly (and do not
use xdg-open or dbus), leave as is.

If a program supports opening firefox (or URLs in general) through dbus, add
the relevant dbus entries and remove the firefox path entries.

This would better isolate firefox config/data from other programs, though it
would increase dependency on dbus.

Also, it would require checking each program to see if it can open firefox
through dbus or not.

Thoughts?

<!-- gh-comment-id:3912641088 --> @kmk3 commented on GitHub (Feb 17, 2026): > ~/.mozilla is no longer used in favor of ~/.config/mozilla and > ~/.cache/mozilla > > I was going to make a PR for this of firefox-common.profile, but then I > noticed all the additional non-browser profiles that reference ~/.mozilla and > wanted to ask if we should re-evaulate those exceptions. > > Also of note: Firefox doesn't appear to attempt migration of this directory > just yet, but fresh installs/starts with Firejail current will be lost on > close. To fix the immediate breakage on new installs, I created a PR to just add the new dir everywhere that the old dir appears: * #7061 For the sake of maintenance, I agree that it would be better to avoid having to copy these paths into profiles just so links can be opened in a web browser. I think the following would be an improvement: For firefox forks, leave the migration wizard comment (with the firefox paths) as is. For programs that only try to open the firefox executable directly (and do not use `xdg-open` or dbus), leave as is. If a program supports opening firefox (or URLs in general) through dbus, add the relevant dbus entries and remove the firefox path entries. This would better isolate firefox config/data from other programs, though it would increase dependency on dbus. Also, it would require checking each program to see if it can open firefox through dbus or not. Thoughts?
Author
Owner

@kmk3 commented on GitHub (Feb 17, 2026):

Maybe only the following entries would be needed:

dbus-user.filter
dbus-user.talk org.mozilla.firefox.OpenURL

Or if xdg-open / xdg-desktop-portal is used:

dbus-user.filter
dbus-user.talk org.freedesktop.portal.Desktop
<!-- gh-comment-id:3912651217 --> @kmk3 commented on GitHub (Feb 17, 2026): Maybe only the following entries would be needed: ``` dbus-user.filter dbus-user.talk org.mozilla.firefox.OpenURL ``` Or if `xdg-open` / `xdg-desktop-portal` is used: ``` dbus-user.filter dbus-user.talk org.freedesktop.portal.Desktop ```
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#3463
No description provided.