Firefox 147 将支持 XDG 基本目录规范。
Firefox 147 Will Support the XDG Base Directory Specification

原始链接: https://www.phoronix.com/news/Firefox-147-XDG-Base-Directory

经过21年,Firefox终于在其即将发布的147版本中实现了对XDG基本目录规范的支持。这项长期要求的特性将改变Firefox在Linux系统上存储文件的方式。 目前,Firefox将所有数据放在`~/.mozilla`目录中。XDG规范定义了应用程序数据、配置文件和缓存的标准位置——例如`~/.config`和`~/.local/share`——从而促进更好的组织和与其他Linux应用程序的兼容性。 最初于2004年报告为错误,最近合并的支持代码关闭了这一长期存在的问题。Firefox 147现在将遵守XDG标准,为Linux用户提供更集成的使用体验,并使其文件管理与更广泛的桌面环境保持一致。

## Firefox 147 及 XDG 基本目录支持 Firefox 147 将开始支持 XDG 基本目录规范,这是 Linux 用户期待已久的更改。 目标是使 Firefox 更好地与系统范围内存储应用程序数据和配置文件标准保持一致。 目前,Firefox 主要使用 `~/.mozilla` 目录。 此更新引入了对 `~/.config/mozilla` 作为替代方案的支持,符合 XDG 关于分离配置、缓存和应用程序数据的建议。 然而,初步实现细节表明**没有从旧的 `~/.mozilla` 目录自动迁移**。 如果该目录存在,Firefox 将使用现有目录,否则使用 `~/.config/mozilla`,或者如果设置了 `MOZ_LEGACY_HOME=1` 则使用旧目录。 用户正在讨论是否完全实现了不同数据类型之间的正确分割。 此举意义重大,因为 Firefox 是一款广泛使用的应用程序,它采用 XDG 标准可以鼓励其他软件效仿,从而提高 Linux 桌面的整体一致性。 此功能的原始错误报告可以追溯到 21 年前。
相关文章

原文
A 21 year old bug report requesting support of the XDG Base Directory specification is finally being addressed by Firefox. The Firefox 147 release should respect this XDG specification around where files should be positioned within Linux users' home directory.

The XDG Base Directory specification lays out where application data files, configuration files, cached assets, and other files and file formats should be positioned within a user's home directory and the XDG environment variables for accessing those locations. To date Firefox has just positioned all files under ~/.mozilla rather than the likes of ~/.config and ~/.local/share.

Firefox XDG Base Directory spec bug report


Back in September 2004 this bug report was opened to support the FreeDesktop.org XDG Base Directory specification.

Merged this morning was the support for this specification and associated commits.

Firefox XDG Base Directory spec commit


In turn this long-open bug is now closed and Firefox 147 should be the version to finally support the XDG Base Directory specification for jiving more nicely with other Linux apps.
联系我们 contact @ memedata.com