[PR #7061] [MERGED] profiles: firefox: add new ~/.config/mozilla dir #6298

Closed
opened 2026-05-05 10:54:23 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netblue30/firejail/pull/7061
Author: @kmk3
Created: 2/14/2026
Status: Merged
Merged: 2/15/2026
Merged by: @kmk3

Base: masterHead: firefox-add-new-dir


📝 Commits (1)

  • 2f525cf profiles: firefox: add new ~/.config/mozilla dir

📊 Changes

29 files changed (+63 additions, -0 deletions)

View changed files

📝 etc/inc/disable-common.inc (+1 -0)
📝 etc/inc/disable-programs.inc (+1 -0)
📝 etc/profile-a-l/abrowser.profile (+3 -0)
📝 etc/profile-a-l/armcord.profile (+2 -0)
📝 etc/profile-a-l/electron-mail.profile (+2 -0)
📝 etc/profile-a-l/email-common.profile (+2 -0)
📝 etc/profile-a-l/firedragon.profile (+2 -0)
📝 etc/profile-a-l/firefox-common.profile (+2 -0)
📝 etc/profile-a-l/firefox.profile (+4 -0)
📝 etc/profile-a-l/fluffychat.profile (+2 -0)
📝 etc/profile-a-l/geary.profile (+2 -0)
📝 etc/profile-a-l/gtk-youtube-viewers-common.profile (+2 -0)
📝 etc/profile-a-l/icecat.profile (+3 -0)
📝 etc/profile-a-l/keepassxc.profile (+4 -0)
📝 etc/profile-a-l/krunner.profile (+1 -0)
📝 etc/profile-a-l/kube.profile (+2 -0)
📝 etc/profile-a-l/lettura.profile (+2 -0)
📝 etc/profile-a-l/linuxqq.profile (+2 -0)
📝 etc/profile-m-z/seamonkey.profile (+3 -0)
📝 etc/profile-m-z/signal-desktop.profile (+2 -0)

...and 9 more files

📄 Description

Default directories in Firefox 146 and earlier:

  • ~/.cache/mozilla # cache files
  • ~/.mozilla # config and data

In Firefox 147[1]:

  • ~/.cache/mozilla # cache files
  • ~/.config/mozilla # config and data

Note that the new location apparently contains the same files as in the
former location (including settings, bookmarks, extensions, etc).
That is, even though the new directory resides in $XDG_CONFIG_HOME /
~/.config, it is not solely used for program configuration as described
in the XDG Base Directory specification[2] and $XDG_DATA_HOME /
~/.local/share/mozilla is seemingly not used at all (see also the
discussion in the bug tracker[3]).

Commands used to search and replace:

$ perl -pi -e 's/(.* )(\${HOME}\/\.mozilla)(.*)/$1\${HOME}\/.config\/mozilla$3\n$1$2$3/' \
  -- \
  etc/inc/*.inc \
  etc/profile*/*.profile \

Note: The entries in the following profiles were sorted manually:

  • etc/inc/disable-common.inc
  • etc/inc/disable-programs.inc
  • etc/profile-a-l/keepassxc.profile
  • etc/profile-a-l/krunner.profile
  • etc/profile-m-z/seamonkey.profile

Relates to #7040.

[1] https://www.firefox.com/en-US/firefox/147.0/releasenotes/
[2] https://specifications.freedesktop.org/basedir/latest/
[3] https://bugzilla.mozilla.org/show_bug.cgi?id=259356


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netblue30/firejail/pull/7061 **Author:** [@kmk3](https://github.com/kmk3) **Created:** 2/14/2026 **Status:** ✅ Merged **Merged:** 2/15/2026 **Merged by:** [@kmk3](https://github.com/kmk3) **Base:** `master` ← **Head:** `firefox-add-new-dir` --- ### 📝 Commits (1) - [`2f525cf`](https://github.com/netblue30/firejail/commit/2f525cf5e09bb137dc75d36089f8436716a6c722) profiles: firefox: add new ~/.config/mozilla dir ### 📊 Changes **29 files changed** (+63 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `etc/inc/disable-common.inc` (+1 -0) 📝 `etc/inc/disable-programs.inc` (+1 -0) 📝 `etc/profile-a-l/abrowser.profile` (+3 -0) 📝 `etc/profile-a-l/armcord.profile` (+2 -0) 📝 `etc/profile-a-l/electron-mail.profile` (+2 -0) 📝 `etc/profile-a-l/email-common.profile` (+2 -0) 📝 `etc/profile-a-l/firedragon.profile` (+2 -0) 📝 `etc/profile-a-l/firefox-common.profile` (+2 -0) 📝 `etc/profile-a-l/firefox.profile` (+4 -0) 📝 `etc/profile-a-l/fluffychat.profile` (+2 -0) 📝 `etc/profile-a-l/geary.profile` (+2 -0) 📝 `etc/profile-a-l/gtk-youtube-viewers-common.profile` (+2 -0) 📝 `etc/profile-a-l/icecat.profile` (+3 -0) 📝 `etc/profile-a-l/keepassxc.profile` (+4 -0) 📝 `etc/profile-a-l/krunner.profile` (+1 -0) 📝 `etc/profile-a-l/kube.profile` (+2 -0) 📝 `etc/profile-a-l/lettura.profile` (+2 -0) 📝 `etc/profile-a-l/linuxqq.profile` (+2 -0) 📝 `etc/profile-m-z/seamonkey.profile` (+3 -0) 📝 `etc/profile-m-z/signal-desktop.profile` (+2 -0) _...and 9 more files_ </details> ### 📄 Description Default directories in Firefox 146 and earlier: * ~/.cache/mozilla # cache files * ~/.mozilla # config and data In Firefox 147[1]: * ~/.cache/mozilla # cache files * ~/.config/mozilla # config and data Note that the new location apparently contains the same files as in the former location (including settings, bookmarks, extensions, etc). That is, even though the new directory resides in `$XDG_CONFIG_HOME` / ~/.config, it is not solely used for program configuration as described in the XDG Base Directory specification[2] and `$XDG_DATA_HOME` / ~/.local/share/mozilla is seemingly not used at all (see also the discussion in the bug tracker[3]). Commands used to search and replace: $ perl -pi -e 's/(.* )(\${HOME}\/\.mozilla)(.*)/$1\${HOME}\/.config\/mozilla$3\n$1$2$3/' \ -- \ etc/inc/*.inc \ etc/profile*/*.profile \ Note: The entries in the following profiles were sorted manually: * etc/inc/disable-common.inc * etc/inc/disable-programs.inc * etc/profile-a-l/keepassxc.profile * etc/profile-a-l/krunner.profile * etc/profile-m-z/seamonkey.profile Relates to #7040. [1] https://www.firefox.com/en-US/firefox/147.0/releasenotes/ [2] https://specifications.freedesktop.org/basedir/latest/ [3] https://bugzilla.mozilla.org/show_bug.cgi?id=259356 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 10:54:23 -06:00
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#6298
No description provided.