News for hackers. Stuff that matters.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by amiga386 on Thursday November 20, 2025 @09:51AM (#45993137)
At last! Mozilla fixing longstanding bugs! (I jest)

The devil is in the details though: https://hg-edge.mozilla.org/integration/autoland/diff/8a6d6c...

Looking briefly at this,

* there doesn't appear to be any migration from old directory to new directory. Does the code just use ~/.mozilla if it still exists, ~/.config/mozilla otherwise.. or does it _require_ MOZ_LEGACY_HOME=1 to be set to keep using your existing config, and just lose all config if you don't set that?

* there doesn't appear to be a proper split between ~/.cache (always-removable cached data) ~/.config (configuration) and ~/.local/share (application data that is not user-editable configuration and is not just cached data either), they just moved the entire set of profile stuff to ~/.config

Is that about right, or do I need to read the code more carefully?

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by weaksauce on Thursday November 20, 2025 @11:39AM (#45994566)
> At last! Mozilla fixing longstanding bugs! (I jest)

you joke but they did just close out the initial implementation of a something like 27 year old bug. about:keyboard was recently added to nightly to allow you to change or clear the built in keyboard shortcuts of a bunch of menu items like save, back, refresh, or open dev tools or whatever.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by marcosdumay on Thursday November 20, 2025 @11:44AM (#45994633)
Is CRTL-Q included? They always insisted that applications can't change that shortcut on Linux.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by mikkupikku on Thursday November 20, 2025 @12:13PM (#45994974)
Ctrl-Q (quit application) right next to Ctrl-W (close tab) has been bad UX since forever.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by sevg on Thursday November 20, 2025 @12:42PM (#45995349)
I bind ctrl-q to lock screen in gnome, which is less bad than losing the whole browser.

I suppose you could also bind it to a noop.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by PaulDavisThe1st on Thursday November 20, 2025 @01:19PM (#45995820)
You can tell firefox to ask before quitting ...
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by sevg on Thursday November 20, 2025 @01:31PM (#45995956)
You can also tell Firefox to ignore it completely:

    browser.quitShortcut.disabled
As well as to warn:

    browser.warnOnQuit
    browser.warnOnQuitShortcut
Well, apparently I once was aware of these because I have it set in my custom user.js. But I guess ctrl-q will always be lock screen for me, old habits die hard.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by marcosdumay on Friday November 21, 2025 @09:12AM (#46004794)
> browser.quitShortcut.disabled

The setting is there, it's editable, but Firefox seems to completely ignore it on Linux.

At least up to 145.0.1.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by sevg on Friday November 21, 2025 @10:01AM (#46005207)
Hmm, maybe it’s still necessary to rebind ctrl-q in some cases.

This says gnome has ctrl-q to quit applications:

https://wiki.gnome.org/Design/OS/KeyboardShortcuts

I don’t know if the above is still the default, but I have this in my gnome setup scripts anyway:

    gsettings set org.gnome.settings-daemon.plugins.media-keys screensaver “[‘<Control>q’]”
(IIRC it’s a terminal command because trying to bind ctrl-q in Settings will quit the Settings window. And you can’t unbind ctrl-q completely, so you have to bind it to something else. You could maybe add it as a custom launcher that just runs /bin/true.)
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by PaulDavisThe1st on Friday November 21, 2025 @10:00AM (#46005180)
I use 144.0.2 on Linux and it works entirely fine here.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by sznio on Friday November 21, 2025 @03:52AM (#46002596)
and testing it now, it asks me by default, and I never changed that setting
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by Pet_Ant on Thursday November 20, 2025 @02:30PM (#45996626)
> Ctrl-Q (quit application) right next to Ctrl-W (close tab)

That bug was actually fixed in the Dvorak release...

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by deanishe on Friday November 21, 2025 @02:20AM (#46002025)
On a German PC keyboard, @ is ALT+Q.

That was a big problem when I switched to macOS. I kept hitting CMD+Q every time I tried to type an email address.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by blueflow on Thursday November 20, 2025 @01:31PM (#45995950)
I need source on that Ctrl+Q thing
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by weaksauce on Thursday November 20, 2025 @03:31PM (#45997304)
https://i.imgur.com/8a9Jbj6.png it seems to be available to remap/cancel.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by weaksauce on Thursday November 20, 2025 @03:30PM (#45997298)
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by georgefrowny on Thursday November 20, 2025 @11:43AM (#45994620)
Holy shit does this mean I can disable Ctrl-Shift-C and get my muscle memory for terminal copy back?
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by Gabrys1 on Thursday November 20, 2025 @12:28PM (#45995181)
There's an extension for that. Quite handy for in-browser terminals like one in AWS etc.

https://addons.mozilla.org/en-US/firefox/addon/ctrl-shift-c-...

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by cookiengineer on Thursday November 20, 2025 @12:48PM (#45995412)
I installed this extension 5 minutes ago and it's already such an improvement. Never occured to me that there can be extensions to override shortcut defaults.

Thanks!

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by suprjami on Thursday November 20, 2025 @01:57PM (#45996272)
This was my first thought too!
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by weaksauce on Thursday November 20, 2025 @03:32PM (#45997320)
as a matter of fact... yes https://i.imgur.com/0uxzr4H.png
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by stronglikedan on Thursday November 20, 2025 @01:55PM (#45996251)
was that a bug though? cuz it sounds like it was just a new feature that was added
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by weaksauce on Thursday November 20, 2025 @08:38PM (#46000230)
yeah they only have one system for it all and they are all called bugs.

here's the 25 year old bug. https://bugzilla.mozilla.org/show_bug.cgi?id=57805

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by philo23 on Thursday November 20, 2025 @09:56AM (#45993217)
From that diff it looks to me that if ~/.mozilla exists OR if MOZ_LEGACY_HOME is set it uses ~/.mozilla, otherwise it uses the $XDG_CONFIG_HOME/.mozilla directory instead.

So no migration to the XDG directory, but also no throwing away your existing data either.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by paulddraper on Thursday November 20, 2025 @10:04AM (#45993299)
That’s the safest.

Who knows what might be touching that data today. Or backing it up, etc

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by gen2brain on Thursday November 20, 2025 @11:29AM (#45994422)
I know a few apps that did the same (mpv for example). If you still have it in home root it uses that, when you move it to .config it uses that instead. Auto migrating could and would create issues.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by shmerl on Thursday November 20, 2025 @10:33AM (#45993675)
So is it safe to just manually move $HOME/.mozilla to $HOME/.config/mozilla ?
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by aallaall on Thursday November 20, 2025 @11:00AM (#45994031)
That’s the hard part to answer, that Mozilla leaves to you!
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by Gabrys1 on Thursday November 20, 2025 @12:30PM (#45995190)
I think yes. And that's maybe the reason they didn't properly split the files to .cache/ .config etc
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by neilv on Thursday November 20, 2025 @12:32PM (#45995208)
I would guess not. I see `.mozilla` absolute pathnames within some files in a profile directory (specifically, `extensions.json` and `pkcs11.txt`).

(This has bitten me before. I don't know why it was done that way.)

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by badsectoracula on Thursday November 20, 2025 @01:16PM (#45995786)
It seems Firefox doesn't really rely on these. My profile directory has been around for more than a decade, went through three computers and even between Windows and Linux and from plain Firefox to Firefox Developer Edition and pretty much everything transferred just by copying the files around (however i didn't copy the full Mozilla directory, first i let Firefox make a new empty profile by itself and copy/pasted the files in it, overwriting whatever was already there).

It even had the original XUL-based DownThemAll version, got disabled after XUL addons were disabled and some time one or two years later it got re-enabled again after the dev released a webextensions compatible version (sadly with several limitations, but still useful for bulk downloads).

Amusingly, there are a couple Windows absolute paths in there even though this profile has been on Linux for a few years now :-P

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by neilv on Thursday November 20, 2025 @01:21PM (#45995843)
Interesting. I have had extensions lose their storage when the profile directory path changed, and at the time it seemed to be because of the pathnames within the files.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by shmerl on Thursday November 20, 2025 @07:55PM (#45999987)
I guess we can try replacing the value there manually to the new one before starting Firefox.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by johnisgood on Thursday November 20, 2025 @01:09PM (#45995674)
This is very important to know if this is really the case. And if it is, then what is the best way to migrate? Is there an official, supported method if "mv" is not it?
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by shmerl on Friday November 21, 2025 @01:20AM (#46001742)
There is an answer in the comment to the original bug:

> there is no migration path supported at this point: only new profiles are expected to use the new setup. Migrating manually is at your own risk, make a backup before.

I'll try to do it manually, replacing paths in the couple of files mentioned above first.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by safety1st on Friday November 21, 2025 @08:13AM (#46004194)
I hate to say it, but if there's no migration path, this improvement may not have been the best use of Mozilla's resources. Because who's creating new Firefox accounts in 2025? I mean I guess the folder will be in the right place the next time I do a fresh install, but I'd rather see them investing in stuff that grows their user base.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by shmerl on Friday November 21, 2025 @09:38AM (#46005012)
Better something simple than nothing. I'm glad they didn't use it as an excuse not to do it at all. I've seen this happening with other projects.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by KwanEsq on Thursday November 20, 2025 @10:11AM (#45993388)
Looking at the full diff[0] it certainly looks like it's using ~/.cache (and has been for some time), but I cannot see anything about ~/.local/share, no.

[0] https://hg-edge.mozilla.org/integration/autoland/rev/8a6d6c0...

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by shmerl on Thursday November 20, 2025 @10:36AM (#45993709)
Nope, they just moved $HOME/.mozilla to $HOME/.config/mozilla it seems.

Which already is a huge improvement and better than bikeshedding for decades that they also should use $HOME/.local/share/mozilla in addition.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by sph on Thursday November 20, 2025 @11:03AM (#45994062)
Which means my .config directory, which is under backup, is gonna be spammed with temporary and cache files. Though not XDG-compliant, at least ~/.mozilla was in place for decades and it’s already being excluded in my backup set on my machines.

Either they adopt XDG fully, putting cache files where they belong, or don’t just change things haphazardly for little benefit.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by shmerl on Thursday November 20, 2025 @11:38AM (#45994555)
Not cache files if I understand correctly, they are using $HOME/.cache/mozilla for a long time already.

You can exclude $HOME/.config/mozilla from your back up all the same anyway if that causes you some issues.

I personally appreciate them not cluttering $HOME with this move. It is better than waiting another 21 years for them to support XDG spec fully by splitting share and config.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by mulmen on Thursday November 20, 2025 @01:47PM (#45996143)
> You can exclude $HOME/.config/mozilla from your back up all the same anyway if that causes you some issues.

And then just not have Firefox backups?

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by shmerl on Thursday November 20, 2025 @03:08PM (#45997020)
Person above already didn't have them, so not sure what you are asking.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by ac29 on Thursday November 20, 2025 @07:42PM (#45999906)
about:cache says my firefox is using ~/.cache for cache. This is on version 144
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by shmerl on Thursday November 20, 2025 @07:54PM (#45999983)
Which is what I expect, yes.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by ndegruchy on Thursday November 20, 2025 @09:56AM (#45993211)
I think there is probably a lot of work to do to fully pry the .mozilla folder apart. For a long time they've simply shipped everything in that folder and rolled with it. Making decisions on what is actually cache and what is user config vs "application data" is probably going to be harder than splitting the folder.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by amiga386 on Thursday November 20, 2025 @10:04AM (#45993291)
That's true, but they've already done it for macOS... ~/Library/Application Support/Firefox/ (for both the config and non-config data) versus ~/Library/Caches/Firefox/ (for cached data that can always be deleted)
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by shevy-java on Thursday November 20, 2025 @10:59AM (#45994016)
> I think there is probably a lot of work to do to fully pry the .mozilla folder apart.

So, things change over time. The question is: is the codebase at Mozilla still "living" in that it can adjust or be adjusted?

https://www.linuxfromscratch.org/blfs/view/svn/xsoft/firefox...

Requiring a mozconfig file shows that the code base has failed to transition to cmake or meson/ninja (directly; there is some python wrapper which may help here but I refer to the primary configuration). Mozilla gave up on Firefox a long time ago already.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by abdullahkhalids on Thursday November 20, 2025 @10:02AM (#45993273)
Extension data also lives in the profile folder. Some of those might start failing because of splitting up the profile into multiple folders.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by ndegruchy on Thursday November 20, 2025 @10:17AM (#45993474)
Oh, I hadn't even _thought_ of that. Yeah, that's going to be a fun debate. Realistically, extensions shouldn't care about the folder structure of other parts of the profile, but I also know that there is a _lot_ of history there.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by shmerl on Thursday November 20, 2025 @10:34AM (#45993694)
FYI, they do use $HOME/.cache/mozilla already for a long time.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by ryandrake on Thursday November 20, 2025 @10:58AM (#45994007)
You may jest, but sadly, that was my first knee-jerk reaction to the headline, too. "Wow, Mozilla actually fixes Firefox bugs? Let's go!" This is how low the bar has gotten :(

More of this, less AI-cramming, please!

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by darkamaul on Thursday November 20, 2025 @09:56AM (#45993206)
I was curious about how old the original bug report was, and it appears to be 21 years old [0]!

[0] https://bugzilla.mozilla.org/show_bug.cgi?id=259356

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by layer8 on Thursday November 20, 2025 @12:36PM (#45995266)
It’s right in the first sentence of the article.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by batisteo on Thursday November 20, 2025 @12:24PM (#45995129)
> there doesn't appear to be a proper split between ~/.cache (always-removable cached data) ~/.config (configuration) and ~/.local/share

If that’s true, the title of the issue (and blog post) is quite untrue. Shoving everything in ~/.config is different than following the XDG Base Directory spec.

At least it’s one dotfile less that’s polluting my home.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by johnisgood on Thursday November 20, 2025 @01:12PM (#45995723)
I agree, because of XDG_CONFIG_HOME vs. XDG_CACHE_HOME vs. XDG_DATA_HOME.

See https://wiki.archlinux.org/title/XDG_Base_Directory.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by eitland on Thursday November 20, 2025 @01:30PM (#45995942)
Someday they'll stop changing the context menu if I accidentaly select something.

(Some UX designer or developer thought it was a great idea to remove the back and forward buttons from the context menu if text is selected so now I have two different context menus and one of them lack the thing I am looking for most of the time which is the back button.

Or fixing the tabstrip API (someone has decided we users are now too stupid to use only tree style tabs and for our own good we must be prevented from hiding the original tab bar).

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by Lammy on Thursday November 20, 2025 @01:35PM (#45995998)
> so now I have two different context menus and one of them lack the thing I am looking for most of the time

This annoys me constantly trying to get Firefox to show the “Take Screenshot” context-menu item. Yes I know about Control+Shift+S, but I'm still annoyed when my hand is already on the mouse and it won't do what I want.

Although perhaps I should stop using that feature since I just while writing this comment realized how much it spies on you: https://probes.telemetry.mozilla.org/?search=screenshots

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by ndriscoll on Thursday November 20, 2025 @01:39PM (#45996068)
That domain is blocked on my network. What kind of information is it collecting?
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by Lammy on Thursday November 20, 2025 @01:47PM (#45996157)
Events:

  screenshots.canceled#canceled
  screenshots.copy#copy
  screenshots.download#download
  screenshots.failed#failed
  screenshots.selected#selected
  screenshots.started#started
Counters:

  screenshots.copy
  screenshots.custom
  screenshots.download
  screenshots.element
  screenshots.full_page
  screenshots.upload
  screenshots.visible

inb4 mention of “Send technical and interaction data to Mozilla” setting, like it's okay for software to be privacy-adversarial by default lol
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by wpm on Thursday November 20, 2025 @03:17PM (#45997121)
Maybe I'm just too stupid, but goddamn what could the possible value in knowing if someone cancelled a screenshot or something. Like, *who cares*
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by eitland on Friday November 21, 2025 @06:30AM (#46003493)
Are you serious?

It is rather obvious why a software designer want to know how a piece of software is used and also to know it over time. If number of cancelled screenshots increases (or decreases) compared to general usage of the screenshot feature it might give an early indication that a recent change was bad (or good).

As long as it only logs counters like this and not who I am or any of my data or who I am I actually want them to log it and if it was disabled and there was an easy way to enable it I would do it.

The problem is that they have:

- a history of not being completely honest (unlike certain other actors who have a history of being actively dishonest)

- no easy way for people to choose what they send

- and a number of other problems, for example what I suspect is that they ignore actual users seemingly in favour of what their ux designers and developers think a user should want. (And that seems to always be dumbing down, "simplifying" and making it more like Chrome.)

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by eviks on Friday November 21, 2025 @03:00PM (#46008303)
This is mostly useless information since it has no context of what's going on, so can't really separate noise from signal. Much fewer user complains about cancellations due to various issues is more valuable.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by eviks on Friday November 21, 2025 @02:52PM (#46008209)
That's why they should copy Vivaldi and allow custom context menus where you can add/remove/rename. Customization is how you rectify those centralized UI mistakes
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by pjmlp on Friday November 21, 2025 @04:10AM (#46002699)
Next bookmarks window resizing, well we can dream.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by darkamaul on Thursday November 20, 2025 @09:50AM (#45993129)
This is a meaningful step! For years, XDG Base Directory compliance has been spotty across major applications. Firefox's adoption matters because it's widely used and its implementation may encourage others to follow suit.

The Arch Wiki documentation will likely need updates [1], but sadly the list of non-compliant software is far too long.

[1]: https://wiki.archlinux.org/title/XDG_Base_Directory

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by aidenn0 on Thursday November 20, 2025 @10:30AM (#45993639)
FWIW, the OpenSSH devs believe it to be a potential security risk to adopt XDG:

> Adding additional configuration paths is confusing and potentially risky for .ssh as, quite unlike usual "desktop" apps, it grants system access and having its configuration smeared across several possible paths makes managing this more confusing and brittle.[1]

I think this is clearly true for something like ~/.ssh/authorized_keys; it is perhaps less true for ~/.ssh/config and or ~/.ssh/known_hosts which could go in XDG_CONFIG_HOME and XDG_DATA_HOME, but if part of the point of the XDG BDS is to reduce dotfiles in $HOME then it makes less sense to move some, but not all of those files.

1: https://marc.info/?l=openssh-unix-dev&m=170687803731931&w=2

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by Avamander on Thursday November 20, 2025 @11:53AM (#45994734)
I think most people are okay with software such as OpenSSH keeping its long-existing conventions. In the same way I don't think a lot of people mind ".bashrc" being where it is. It's manageable if there's just a few and they're well-known.

However this "exemption" does not and should not apply to anything newer. Things like Cargo, Snap, Steam, Jupyter, Ghidra, Gradle, none of those should be putting their stuff (especially temporary junk) directly and unsegmented into $HOME.

At some point I had more than 50 different dotfiles and dotfolders in my $HOME. It was unwieldy and nasty to look at. I couldn't even figure out what created some of those files because they were so generic.

Plain $HOME as the dumping ground simply does not scale beyond a select few.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by aidenn0 on Thursday November 20, 2025 @12:40PM (#45995321)

    $ find ~ -maxdepth 1 -name '.??*'|wc -l
    435
[edit]

A sampling...

    $ (cd && find . -maxdepth 1 -name '.*'|sort -R|head)
    ./.texlive2023
    ./.stl
    ./.stp
    ./.repo_.gitconfig.json
    ./.xsel.log
    ./.msmtprc
    ./.fonts
    ./.bash_logout
    ./.steampath
    ./.compose-cache
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by encom on Thursday November 20, 2025 @12:50PM (#45995426)
>$HOME as the dumping ground

It's been a while since I used Windows, but I remember the "My Documents" folder being trash pile of configs, save games, data files and whatnot, making it the worst place to actually store your documents.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by redwall_hp on Thursday November 20, 2025 @01:30PM (#45995941)
Windows-oriented developers bring that mess to Macs, too, and it's incredibly aggravating. For over 25 years, Apple has had Documents/Pictures/Movies/Applications/Downloads/etc folders under the user's home folder, and convention is predominantly that you never put non-hidden files or folders in the user's home directory. And you don't put application configuration in Documents, because that's what ~Library is for.

Then ignorant developers who don't care about the platform throw random configuration folders in ~/ or ~/Documents, or think their app needs a central workspace folder for all of its projects, instead of letting you manage your own damn files.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by tensegrist on Thursday November 20, 2025 @01:37PM (#45996022)
how else will you remember where you stored your 3d objects
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by Avamander on Friday November 21, 2025 @08:07AM (#46004148)
I actually use it for 3D objects for my printer. Stays nice and clean compared to My Documents.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by ziml77 on Friday November 21, 2025 @12:09AM (#46001432)
It's just plain lazy devs. They do that crap on Windows too despite having conventions for where the stuff goes since Windows 98 (though Photos and Videos folders were introduced with XP, and Game Saves with Vista).

The folder for config is even older. CSIDL_APPDATA has been able to be used to get the path to the AppData folder since the update for Windows 95 that added Internet Explorer 4.0.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by johnisgood on Thursday November 20, 2025 @01:15PM (#45995758)
> configuration smeared across several possible paths

This does make things confusing, and while it may be inconvenient, it is not a security risk.

I use firejail with most apps and they do not have access to any other files than their own (most of the time).

FWIW, I am completely fine with ~/.ssh and I hope it keeps being ~/.ssh. I prefer SSH-related stuff to be in one place. Same with ~/.gnupg. I do not want to miss anything when I am making backups.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by smaudet on Thursday November 20, 2025 @02:55PM (#45996891)
> inconvenient, it is not a security risk

Mmm...not exactly. When security is difficult, the default fix is to turn it off, workaround, etc. Security should be relatively simple.

Increasing the difficulty of correctly configuring additional directories increases the chance something "bad" may happen. As a theorical example, for ssh say that config is not protected the same way keys are (on the file system or by policy). Pair this with some option that, when configured, exposes the contents of the keys.

Increasing the complexity required to secure something makes it inherently less secure.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by johnisgood on Thursday November 20, 2025 @03:05PM (#45997000)
Okay, that makes sense and I do not disagree.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by aidenn0 on Thursday November 20, 2025 @06:40PM (#45999457)
Here's an example:

Let's say that there are just two possible paths for an authorized_keys file (P1 and P2).

The choices are:

1. Check P1, if it doesn't exist use P2

2. Check P2, if it doesn't exist use P1

3. Merge the contents of P1 and P2 somehow

You need to remove authorization for a key (or certificate); you confirm it has been removed from P1. In both cases #2 and #3 above, you may have failed to actually remove authorization!

Obviously if there are more than 2 possible paths, things get even worse. Also, if you follow XDG to the letter (where things can be redirected by environment variables), there are even more confounding issues, because the environment that sshd sees could be different from the environment that the user sees.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by PunchyHamster on Thursday November 20, 2025 @01:02PM (#45995577)
the most "fun" I had it with the mess recently was after icedove -> thunderbird name migration (it was renamed in Debian coz of some trademark issue).

Tunderbird, of course, kept mail and config in same directory. The migration process renamed .icedove to .thunderbird and removed it.

But the config for mailboxe still had .icedove/xyz path. So once config migration is finished, mails start to download in old location, and after restarting thunderbird goes "hey, there is both .icedove and .thunderbird dir, I'm not starting".

with XDG that config would be separate so there would be no need to even move the data dir

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by shmerl on Thursday November 20, 2025 @09:41PM (#46000652)
Chromium is still polluting stuff with $HOME/.pki because it's not using libnss correctly and developers don't care to fix it, despite a longstanding open bug report.

Which results in everything that embeds Chromium (like QtWebEngine and etc.) polluting $HOME as well.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by indolering on Friday November 21, 2025 @05:07AM (#46003021)
It's absurd that the list is so long considering the PR to fix it would only take a couple of hours.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by longor1996 on Friday November 21, 2025 @05:21AM (#46003101)
Given that many tools are relatively small, I'd almost argue it wouldn't take more than 30min, ignoring testing.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by ndegruchy on Thursday November 20, 2025 @09:43AM (#45993053)
This is great news. Firefox respects the system-defined folders on Windows and macOS. Linux, being the free spirit it is, doesn't have a 'standard'. XDG makes recommendations that make a certain amount of sense and aligning to that is a great step forward for such a large project.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by lovedaddy on Thursday November 20, 2025 @10:13AM (#45993426)
This is awesome! Been tracking the bug for what seems like Gimp 3 levels of time. But great job all involved.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by johnisgood on Thursday November 20, 2025 @10:02AM (#45993266)
About time. Every piece of software should be XDG-compliant. I am surprised it was not the case at all to begin with.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by freeone3000 on Thursday November 20, 2025 @10:20AM (#45993507)
XDG is newer than firefox and hasn’t been widely adopted for the majority of its life.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by amiga386 on Thursday November 20, 2025 @10:27AM (#45993603)
Do you mean Firefox specifically?

The reason most software is not "XDG-compliant" is because most software predates the XDG basedir spec which only came into existence in 2021 (edit: oops, that's just version 0.8; version 0.6 was available in 2003)

It will be nice for software, as it updates, to support this standard which seems to be gaining adoption, and it will make users homedirs much cleaner. But it's most important for software to _keep working_, and have a migration path that doesn't lose the user's config or end up with two configs and not have a clear rule on which one it will use.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by johnisgood on Thursday November 20, 2025 @10:43AM (#45993817)
I think it is possible for software to keep working and I can think of many ways to implement automatic "migration", which is essentially just copying files to the new directory and then deleting the previous directory if the copy was successful[1], and if one wants, could create a compressed backup of the directory prior to doing that.

[1] Could implement a verification step as well.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by Someone on Thursday November 20, 2025 @11:12AM (#45994203)
> which is essentially just copying files to the new directory and then deleting the previous directory if the copy was successful

And deleting the partially copied data if the copy wasn’t successful, and making sure “just copying files to the new directory” didn’t overwrite data, and probably a few more tricky scenarios, e.g. ones involving access rights.

Also, if you think it could be a directory rename, there are tricky corners there, too. How do you determine whether source and target are on the same disk, for example?

It _is_ possible, but doing it robustly is far from trivial.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by johnisgood on Thursday November 20, 2025 @12:10PM (#45994938)
You are listing edge cases that exist, but the relevant question is whether they meaningfully apply to Firefox profile migration on typical systems.

Same-disk detection can be done through stat() on both paths and comparing st_dev, which is trivial. But more importantly, why does this matter for migration? If it is cross-filesystem, copy and move works fine. If you are concerned about atomicity, that is a different problem, but Firefox profiles are not typically manipulated concurrently during a migration that happens once at startup.

Partial copy cleanup is reasonable, but again, context matters. For a one-time migration triggered at browser start with exclusive access to the profile, you verify checksums or sizes post-copy, and if verification fails, you do not delete the source. User gets an error, tries again later. Not complex.

As for overwrites: do not overwrite if target exists. Check once before starting. If the XDG path already has data, skip migration entirely or prompt. This is not a continuous sync operation.

FWIW "cp -a" preserves access rights on Unix. On Windows, ACLs can be trickier but for user-owned profiles it is usually non-issue.

The real complexity in robust file operations show up with network filesystems (SMB, NFS), concurrent access patterns, or where atomicity guarantees are critical (and a move operation is indeed atomic, assuming typical systems). For a single-user profile migration that happens once with exclusive lock? The corner cases you mentioned are either straightforward to handle or do not apply.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by Avamander on Thursday November 20, 2025 @11:56AM (#45994768)
Migration might be nontrivial but there's absolutely zero good excuse for creating _new_ noncompliant directories for 17 years.

There's lot less to migrate if you don't wait that long.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by AdmiralAsshat on Thursday November 20, 2025 @10:48AM (#45993881)
I wonder if the original reporter is still around to see their enhancement ticket closed?
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by aallaall on Thursday November 20, 2025 @11:03AM (#45994072)
Perhaps their grand children are still around?
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by PunchyHamster on Thursday November 20, 2025 @01:03PM (#45995580)
probably using chrome tho, FF really squandered the marketshare
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by kjkjadksj on Thursday November 20, 2025 @03:01PM (#45996954)
Nothing they could do when the de facto search engine and de facto video player for the entire internet started shilling its own product relentlessly.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by ksec on Thursday November 20, 2025 @10:54AM (#45993955)
I am wondering what other long standing bug or feature that is still missing on Firefox.

Firefox excel in terms of Multi Tab and memory usage. And I have yet to encounter a rendering issues in the past 12 months.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by kjkjadksj on Thursday November 20, 2025 @03:15PM (#45997089)
I’m not sure if its because of my ad blocker but I get the occasional link that wont click when I am say going through a job application flow. Could be the way their saas vender implements things. For things that are important like that or say banking/credit card websites I usually am forced to defer to Safari.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by codedokode on Thursday November 20, 2025 @10:47AM (#45993873)
I don't like Unix filesystem structure in general. What's the point of having directories like /usr or /lib in the root directory, when they could be all under for example, /ubuntu24? And the user could keep files in the root directory and not in /home with lot of system files.

Also I don't like that some distributions suggest partitioning a drive. This is inconvenient, because you can run out of space at one partition, but have lot of free space at another. It simply doesn't make sense. And if you have swap as a partition, you get slightly faster access, but cannot change the size!

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by neoden on Thursday November 20, 2025 @11:01AM (#45994045)
> you can run out of space at one partition, but have lot of free space at another

that's exactly the point — you can run out of space in your /home but that does not affect, for example, /var. or vice versa, log explosion in /var is contained within its own partition and does not clog the entire filesystem.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by PunchyHamster on Thursday November 20, 2025 @01:04PM (#45995592)
very important for /var/log, pretty easy to have log spamming app fill the drive, and you don't want logs filling get your database into out of disk space state
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by codedokode on Friday November 21, 2025 @12:20AM (#46001481)
Logs should had a limit, and dealing with partitions is inconvenient for home user. How do you easily change allocation of space between partition?

Also, there are quotas for this purpose.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by tasn on Thursday November 20, 2025 @10:56AM (#45993974)
There are a lot of reasons. Just three from the top of my head:

1. The way Unix works, a directory is a file, so if you can write in a directory you'll also be able to move directories around (and thus break the structure you mentioned completely).

2. Doesn't make sense for multi-user. Yes, I understand most people have their own computers, but (1) why design it in a way that breaks multi-user unnecessarily? (2) there are a lot of utility users, and having them get access to user files because of the way this is structured is silly.

3. `grep -r` is going to be a pain in the ass when searching your own files, because it'll also search all the other system subdirectories too.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by codedokode on Friday November 21, 2025 @12:23AM (#46001495)
> The way Unix works, a directory is a file, so if you can write in a directory you'll also be able to move directories around

Well, maybe this should be changed, or we could just use the sticky bit.

Other users, except for primary user, can use /ubuntu24/home/. Primary user uses the root of hard drive however they want.

> because it'll also search all the other system subdirectories too.

It's already a pain because /home contains lots of system files, caches etc. And it would not be difficult to add a flag "skip system files".

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by mixmastamyk on Thursday November 20, 2025 @11:05AM (#45994098)
It’s just historical. Believe the large number of top level directories was a result of ken not having enough space on a single disk on his PDP, when that was precious.

For years I’ve been putting all user data into a separate /data partition and have kept the OS partition small (~30gb). But you have to fix the system when first installed. When I still used Windows I had the same c:/d: split.

More recently started putting kernels into a bigger ESP (EFI) partition with sdboot or uki.

With terabyte system disks, running out of space mostly doesn’t happen anymore unless you made the system partition(s) small. Don’t do that, give them plenty of GB, each of which are now thousandths of the disk.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by codedokode on Friday November 21, 2025 @12:24AM (#46001501)
No. This makes configuration complex, pain to restore if something breaks, and some partitions will have lot of unused space.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by mixmastamyk on Friday November 21, 2025 @11:29AM (#46005965)
Not at all. Having your data on a separate partition makes upgrades and backups a breeze, the opposite of what you said. One percent is wasted, I can live with that.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by joestrouth1 on Thursday November 20, 2025 @10:58AM (#45994009)
If one user kept their files in the root directory, where would a second user keep theirs?
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by aallaall on Thursday November 20, 2025 @11:02AM (#45994053)
Most operating systems mounts things dynamically. You can never trust that a path for you exists for another user.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by pwg on Thursday November 20, 2025 @12:43PM (#45995365)
This is a very recent aspect time wise in the very long history of Unix (and Linux) systems.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by codedokode on Friday November 21, 2025 @12:25AM (#46001504)
In /ubuntu24/home. Or a subdirectory could be created in the root directory.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by hnarn on Thursday November 20, 2025 @11:50AM (#45994700)
I’m honestly having issues deciding if this is bait or not. Surely you understand that UNIX is a multi-user operating system and that partitioning drives exactly for the reason you describe is critical to ensure that, for example, runaway log growth doesn’t cause a database to shut down?
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by pwg on Thursday November 20, 2025 @12:58PM (#45995530)
Today, in 2025, neither are safe assumptions to make. Much in line with the Internet meme's of "new college freshmen in 2025 have never known a world without cell phones" and the like, in 2025 there is now some rather large subset of the computer using population who have never known of nor used a "multi-user computer" and have only ever seen and used "single user computers" (even if the OS on their computer is inherently multi-user, the overall 'computer' is 'single-user' from their viewpoint).

And, if they have never seen nor used "multi-user computers" they also have not encountered "runaway log growth" or the like -- or if they did it was from their own process that they immediately killed, not by some other user on the same computer filling /var/log/ in the background.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by encom on Thursday November 20, 2025 @01:03PM (#45995583)
AI startup idea: A plugin that scores HN posts on likelihood of bait. ChatGPT when prompted "Give [the post] a score from 1 to 10, where 1 is complete sincerity and 10 is low effort bait" thinks this is 7.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by PunchyHamster on Thursday November 20, 2025 @01:06PM (#45995623)
there is good chance with any bait to just have someone clueless.

I heard actual devs complaining they don't need logrotate because containers are restarted often enough...

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by PunchyHamster on Thursday November 20, 2025 @01:05PM (#45995612)
It's a learning experience, when you see something, ask yourself "why it is so complicated" and try to do it simpler

Then fix bug after bug after bug in your new "simpler" thing and realize why the thing you decided to "fix" was that complicated in the first place

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by codedokode on Friday November 21, 2025 @12:30AM (#46001526)
Logs should be limited by size. One could also use quotas in a filesystem. Also, what if some other application, like npm cache, uses the space for a database? Do you suggest allocating a partition for every program?

Also, databases usually store data in /var so it won't even help. Also, mysql simply hangs instead of shutting down in this case.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by hnarn on Friday November 21, 2025 @08:02AM (#46004096)
> databases usually store data in /var so it won't even help

Databases store data where you tell them to.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by einpoklum on Thursday November 20, 2025 @01:04PM (#45995590)
Partitioning a drive lets you use different file systems on different parts.

It also lets you somewhat-better enforce things like:

* Setting some data aside as read-only-never-touch-it.

* Excluding some files and directories from searching and indexing.

although admittedly you don't _have_ to partition for that purpose.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by kernc on Thursday November 20, 2025 @12:11PM (#45994942)
Now that everyone is kindly on board, IBM can finally bury this standard.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by shevy-java on Thursday November 20, 2025 @10:57AM (#45993998)
Not bad - with a delay of only 21 years, Firefox is just about to make a strong come back now. :D
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by johnisgood on Thursday November 20, 2025 @01:22PM (#45995859)
Someone asked what the blocker is, and the guy replied:

  Time ? I'm focused on other things.
I mean, he only had 21 years. :D
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by phoronixrly on Thursday November 20, 2025 @10:56AM (#45993975)
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by shmerl on Thursday November 20, 2025 @10:32AM (#45993664)
Sincere congrats! It only took 21 years.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by ceving on Thursday November 20, 2025 @10:41AM (#45993787)
I think the XDG spec is pretty petty. What difference does it make that the files are in ~/.config/mozilla instead of ~/.mozilla? And calling it a bug is presumptuous.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by Avamander on Thursday November 20, 2025 @12:06PM (#45994875)
There are multiple reasons for this.

One being that it's _my_ $HOME, not some random developers'. I literally had more than 50 different dotfiles and dotfolders in my $HOME at some point. It was a garbage dump and I couldn't even identify the culprit with some of them. Simply disrespectful.

Then there's the issue of cleaning up leftovers and stale cache files. It shouldn't take a custom script cleaning up after every special snowflake that decided to use some arbitrarily-named directory in $HOME.

Not following the spec also makes backing up vital application state much much harder.

In the end, I made my $HOME not writeable so I could instantly find out if some software wants to take a dump. It turns out it's often simply unnecessary as well, the software doesn't even care, just prints an error and continues.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by akdev1l on Thursday November 20, 2025 @03:03PM (#45996967)
> It shouldn't take a custom script cleaning up after every special snowflake that decided to use some arbitrarily-named directory in $HOME.

Not to take away from your point but I shall introduce you to systemd-tmpfiles

no scripts needed, it can clean up for you if you keep a list of directories/files to clean up

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by wpm on Thursday November 20, 2025 @03:25PM (#45997216)
> In the end, I made my $HOME not writeable so I could instantly find out if some software wants to take a dump

A brilliant idea, but goddamn what a shame it is that we have to do such things to keep our homes clean

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by wpm on Thursday November 20, 2025 @10:49AM (#45993892)
The difference is that I don’t use standard XDG directories because I loathe dot-files, loathe hidden directories, and so I declare my own environment variables to put everything where I want.

Then Firefox (and ansible, and many others) comes barreling in dropping an unconfigurable dot-directory in my fucking home folder ignoring the perfectly good XDG variables I have set.

It is a constant struggle to stop my home folder from not feeling like my home. Developers ought to learn some fucking respect.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by RealCodingOtaku on Thursday November 20, 2025 @11:06AM (#45994119)
This, I set an alias for `adb` to use `"$XDG_DATA_HOME"/android` instead of `~/.android` because it stores the keys there for whatever reason. I would rather not see my home folder being cluttered with hidden files, it makes backing things up unnecessarily complex.

    export ANDROID_USER_HOME="$XDG_DATA_HOME"/android
    alias adb='HOME="$ANDROID_USER_HOME" adb'
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by Avamander on Thursday November 20, 2025 @12:08PM (#45994899)
Don't forget Gradle ("GRADLE_USER_HOME") and OpenJDK ("-Djava.util.prefs.userRoot"), those too litter.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by akdev1l on Thursday November 20, 2025 @03:01PM (#45996960)
You could try flatpak Firefox, if that works for you then it takes care of that
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by createaccount99 on Friday November 21, 2025 @05:09AM (#46003035)
Perhaps you should've started to launch your shell in "~/home" instead of "~". Now your home is 1 level down, and the only downside is typing "/home" after the tilde.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by kennywinker on Thursday November 20, 2025 @12:01PM (#45994818)
Have you ever `ls -al ~/` on a heavily used unix system? Absolute rot and chaos. I have like 100 hidden directories+files in the root of my home directory. Some of them are caches, some are configs.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by ceving on Friday November 21, 2025 @02:36AM (#46002105)
And now "absolute rot and chaos" is in "~/.config". What is the difference?
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by kennywinker on Sunday November 23, 2025 @01:26AM (#46021269)
I don’t have to look at it quite as often, and i know to back up .config and ignore .cache.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by adgjlsfhk1 on Thursday November 20, 2025 @11:31AM (#45994459)
the main benefit (which even with this change, Firefox won't get) is the separation of configuration, cache files, binaries etc which sysadmins likely want completely different policies for. e.g. cache shouldn't be backed up, config shouldn't be executable etc
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by sfink on Thursday November 20, 2025 @02:23PM (#45996557)
Firefox already had the benefit with respect to cache files. They've been in ~/.cache/mozilla for at least 7 years now.

Your point is valid for config/data split, but that seems to be a judgement call and many applications do things differently there.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by adgjlsfhk1 on Friday November 21, 2025 @10:15AM (#46005326)
applications doing many different things here is exactly what the xdg protocol is meant to fix.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by sfink on Friday November 21, 2025 @11:05AM (#46005748)
By "doing many different things", I meant that everything disagrees on what should be config and what should be data. People will disagree with any division you pick for something with as varied types of data as a web browser. And some of them will be right, and for good reasons, which means you'll have to sign up for repeated migrations across different versions.

I'm not saying it's a bad idea to try to follow xdg, just that it's a complex and ongoing thing. It's a good example of the "Just do X!" fallacy.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by jaredhallen on Thursday November 20, 2025 @12:43PM (#45995358)
Will it stop enabling dns over https by default?
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by enriquto on Thursday November 20, 2025 @01:06PM (#45995624)
that's great!

The ~/.mozilla folder is one of the last remaining dotfiles in my home directory

    $ ls -a ~
    . .. .bashrc .mozilla .profile .ssh bak config local pro src
You can also be an xdg ninja if you want: https://github.com/b3nj5m1n/xdg-ninja

Annoyingly, many programs hardcode ~/.config and ~/.local (instead of using XDG_CONFIG_HOME etc) and try to recreate them every time they run. This is a good indication to stop using these careless programs!

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by smaudet on Thursday November 20, 2025 @03:00PM (#45996942)
(hard) links to the rescue.

I like environment variables, but developers/operating systems have trouble using them well.

I could almost see XDG_CONFIG_HOME being a setting read by a driver that provides access to a "virtual" path (on *nix, all paths are virtual anyways).

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by HumanOstrich on Thursday November 20, 2025 @07:42PM (#45999908)
> I could almost see XDG_CONFIG_HOME being a setting read by a driver that provides access to a "virtual" path

Now you have even more complexity. Programs will have to know where this "virtual" path is unless you're suggesting it should be hard-coded.

> on *nix, all paths are virtual anyways

What does this mean?

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by smaudet on Thursday November 20, 2025 @11:27PM (#46001227)
> Programs will have to know where this "virtual" path

Not at all. You can read `XDG_CONFIG_HOME` to know where the config path actually is.

Or, if you're lazy, just hard code to `.config`.

I think maybe you are unfamiliar with how paths work on *nix.

All paths are virtual, meaning they are provided by something. Part of the "everything is a file" nix thing. Normally, files are provided by your file system, which (usually) examines stuff like inodes and partition bits, but they are also provided by processes, sockets, pipes, etc.

Everything is a file. So .config is just another "file", if you move the whole disk directory aside, it still exists, provided by the driver.

So your program has to do exactly nothing, other that use either a path, or maybe the env var (maybe useful if you move the physical location of the folder, e.g.)

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by HumanOstrich on Friday November 21, 2025 @02:13AM (#46001995)
I think you are overcomplicating things and contradicting yourself. Maybe you are unfamiliar with how paths work on *nix.

> I like environment variables, but developers/operating systems have trouble using them well.

So then read `XDG_CONFIG_HOME` to find the "virtual" path where the driver will mount the config "virtual" path that could have just been referenced directly in `XDG_CONFIG_HOME`?

> All paths are virtual, meaning they are provided by something.

As opposed to not being provided by something? That's nonsense and even if it did make sense, if ALL paths are virtual, the distinction is meaningless.

Also, you're taking "everything is a file" too literally.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by smaudet on Friday November 21, 2025 @02:40AM (#46002134)
Sorry, I'm not sure if there is a language barrier, or you are not arguing in good faith.

> that could have just been referenced directly in `XDG_CONFIG_HOME`?

It is referenced directly though...

> That's nonsense

What exactly are you asserting to be nonsense? Exactly nothing I said about paths on unix is nonsense, please provide a specific example of what you think is nonsense.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by HumanOstrich on Friday November 21, 2025 @03:36AM (#46002503)
You're right, I think there is a language barrier, or you are not arguing in good faith.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by smaudet on Friday November 21, 2025 @04:37AM (#46002873)
Hmm. You don't reply (to my queries), only like to insult.

Well, ok, whatever. This is a fairly trivial thing to discuss...

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by wpm on Thursday November 20, 2025 @03:22PM (#45997175)
TIL about xdg-ninja, thanks for sharing.

I despise programs that think they can just run a goddamn train on my home directory. I'm sick of hidden files I'm expected to edit by hand for configuration. I sick of ugly dotfiles everywhere.

Re:Firefox 147 Will Support the XDG Base Directory Specifica... by PaulDavisThe1st on Thursday November 20, 2025 @01:26PM (#45995902)

  # export XDG_CONFIG_HOME $HOME
though more seriously

  # export XDG_CONFIG_HOME $HOME/config
why another dotfile dir?
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by andriamanitra on Thursday November 20, 2025 @01:28PM (#45995924)
First .mkv support and now this! I really like what Firefox has been doing recently. The only major annoyance that still remains is hard-coded keyboard shortcuts, fingers crossed!
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by sfink on Thursday November 20, 2025 @02:03PM (#45996335)
Firefox Nightly has about:keyboard (as I just found out from the comment thread on phoronix). Hopefully it sticks. It's bare-bones but functional and I like it that way.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by butz on Thursday November 20, 2025 @02:08PM (#45996395)
Let's hope this will inspire other software developers to follow conventions and move their configs to appropriate directories.
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by s1mplicissimus on Thursday November 20, 2025 @03:04PM (#45996975)
bless them
Re:Firefox 147 Will Support the XDG Base Directory Specifica... by sam_lowry_ on Thursday November 20, 2025 @03:43PM (#45997442)
So... did they also implement the horrendous quirk of Chrome that breaks XDG when XDG_DESKTOP_DIR and XDG_DOWNLOAD_DIR point to the same directory? It probably costed a combined million hours wasted and made many people genuinely hate Linux

See here https://github.com/chromium/chromium/blob/5e4e38173b33159b0e...