154
XDG_CONFIG_HOME (lemmy.world)
submitted 1 week ago* (last edited 1 week ago) by alyth@lemmy.world to c/linuxmemes@lemmy.world

The template of this meme is that of the man who cheerfully points his hand at a butterfly, asking "Is this a pigeon"?. In this meme, the man has been covered with icons of the applications IntelliJ, VSCode, Chromium and Signal. The butterfly which he points to is overlaid with the caption ".config". He asks "Is this a trash can?" At the bottom of the image, we see the command du -sh executed on the directories .config/chromium/ and .config/Code, yielding file sizes of 1016M and 83M respectively.

top 50 comments
sorted by: hot top controversial new old
[-] OsrsNeedsF2P@lemmy.ml 34 points 1 week ago

Better than dumping into ~/

[-] renzev@lemmy.world 11 points 1 week ago* (last edited 1 week ago)

Archwiki has a huge list of apps that do this with instructions on how to force them to not do this. You might find it useful.

Personally though, I've given up on wrangling stubborn apps and just use flatpak and docker for everything. It can't crap in your ~/ if it doesn't have access to it!

[-] pewpew@feddit.it 10 points 1 week ago

I don't get why so many programs do this. This is ridiculous

[-] dan@upvote.au 4 points 1 week ago

Often they were created before the XDG spec was widespread, and haven't been changed for backwards compatibility reasons or because nobody's been willing to change it.

[-] benjaminb@discuss.tchncs.de 6 points 1 week ago

When I use a computer for a few months my ~/ always gets so “messy”, I hate it!

[-] possiblylinux127@lemmy.zip 2 points 1 week ago

I really need work on better use of containers

[-] Brewchin@lemmy.world 30 points 1 week ago

So much this. It's like these clowns don't read the XDG directory spec and think $XDG_CONFIG_HOME and $XDG_DATA_HOME are interchangeable, and even that cache files can be in either or both. No, one directory you need to backup for when things go sideways, and the other can go to /nev/dull.

I'm not a fan of ~/.local/share/ being the data directory (two directories deep seems stupid), but it's definitely where regular data belongs.

Never mind developers who, in 2025, still think their project is special enough for a $HOME dotfile/dotdir or - somehow worse - those who put $XDG_CONFIG_HOME/<weird-name>/subdir/[subdir/]. The latter strikes me as well-meaning Windows developers trying to follow best-practice-like-Microsoft-does, but it makes my teeth itch.

Rant over. :)

[-] dan@upvote.au 8 points 1 week ago

Windows developers trying to follow best-practice-like-Microsoft-does

I think the best practices on Windows are pretty similar to Linux, other than Windows usually using title case whereas Linux usually using lowercase. There's bad developers on both platforms :)

Windows equivalent to XDG_CONFIG_DIR is %appdata%, which is the roaming AppData directory.

[-] SpaceCadet@feddit.nl 4 points 1 week ago

Never mind developers who, in 2025, still think their project is special enough for a $HOME dotfile/dotdir

Well, Firefox is pretty special 🤡

[-] Wilmo@lemmy.world 2 points 1 week ago

This is why I use flatpaks. Keeps most of the offending the dotfiles in .var directory scoped to the app itself

load more comments (1 replies)
[-] IceFoxX@lemm.ee 20 points 1 week ago
[-] onlinepersona@programming.dev 13 points 1 week ago* (last edited 1 week ago)

The signal community should band together and write a signal client that doesn't use the waste of space called electron. There is a rust library for signal and slint for cross platform UIs. Slint is even working (slowly) on mobile targets

Anti Commercial-AI license

[-] yonder@sh.itjust.works 8 points 1 week ago

There already is one called Flare. It uses rust IIRC.

[-] crony@lemmy.cronyakatsuki.xyz 11 points 1 week ago

I use ungoogled chromium, but only for sites that absolutelly don'y wanna work on firefox.

[-] grrgyle@slrpnk.net 15 points 1 week ago

I'm surprised. I haven't had a website not work with Firefox for a long time. I haven't even had to install chromium as a backup in almost two years now.

[-] pufferfisherpowder@lemmy.world 7 points 1 week ago

Just yesterday I had shadow.tech's Cloudflare "vErIFY yOuR hUmAN" fail on me in Firefox. I had fucking paid for a month already otherwise that would have been enough to turn me off.

[-] toebhi@slrpnk.net 2 points 1 week ago

This always happens to me. How can one get around that (without using chrom*)

[-] wreckedcarzz@lemmy.world 4 points 1 week ago* (last edited 1 week ago)

Proxmox, when connected to a host, will not see symbols and instead type the numbers instead (shift+1 etc). But it will still type a character, and it's hidden from the user, so you end up screaming WHAT THE FUCK IS WRONG WITH THIS MOTHERFUCKING PIECE OF SHIT until you try to sudo in fucking chrome and whoop works first try.

Found that like 9 months ago. Still pissed as fuck. Like 2h of my life gone, thought I fucked my root account, fucking pissing myself trying to copy data off before I do anything in case I was fucked.

PM needs to fix their shit.

E: Oh, cpanel recently broke too. I can login, but am immediately logged out because lack of a security token. That one might be because I'm using librewolf, but it was working a month ago so...

E2: synology, both nas and router, works sometimes in LW, but other times it loads the page but no content. This is regardless of if I am logged in and refresh, or if I'm just trying to login. Shit just doesn't reliably work. Chrome, it's fine.

load more comments (3 replies)
[-] Estebiu@lemmy.dbzer0.com 3 points 1 week ago

Firefox doesnt support web serial.

[-] wreckedcarzz@lemmy.world 5 points 1 week ago

Oh yeah that reminds me, to use the Graphene web installer, you need chrome. To revert to factory, chrome.

load more comments (1 replies)
[-] devfuuu@lemmy.world 2 points 1 week ago

They are out there. I also have it around for those occasions. More common that you'd expect. Almost always some shitty site needed for work that has problems.

[-] grrgyle@slrpnk.net 2 points 1 week ago

Yeah my previous I remember needing chromium. It was a dev shop though, so we figured out browser agnostic processes eventually.

[-] MonkeMischief@lemmy.today 2 points 1 week ago* (last edited 1 week ago)

I haven't had a website not work with Firefox for a long time.

Me too...mostly? But the cases I've seen or encountered are always government, financial, education, or medical websites with some super-bespoke "portal" that will simply act bizarre on Firefox.

It really sucks that it seems so common to just glance at some "market-share" data and, not just assume everybody must use Chrome, but go so far as to force them to.

[-] Xttweaponttx@sh.itjust.works 2 points 1 week ago

I'm taking an online based college that makes heavy use of some heavier apps like web based virtual machines that function as 'lab environments' for development assignments. These refuse to function unless I'm in chromium of some kind. Same with the online based proctoring tools the school uses when you take tests n stuff - chrome is the only browser that can be used, and I have to specifically use a windows device 🤢

Always fun to see what I've been "missing out on" in the chrome experience, when I'm forced to use it. Man, the Firefox UX is a dream compared to chrome!

Really hoping on that FOSS browser that's on the horizon! Ladybird, I think it's called? Hopefully it won't be shit! 🤞

[-] benjaminb@discuss.tchncs.de 2 points 1 week ago* (last edited 1 week ago)

I actually use chromium to do watch party’s. As you can disable hardware acceleration and for some reason the Netflix DRM doesn’t work anymore. (So I can stream the video to friends on dc)

But otherwise I never had problems with Firefox.

load more comments (16 replies)
[-] srestegosaurio@lemmy.dbzer0.com 16 points 1 week ago

There's a dedicated 10th circle in hell for this people. As someone who runs a root-on-tmpfs system, PLEASE document which dirs your application is using.

It is a total pain, specially with non standar ones.

But tbf there are a lot of Linux devs who neither have read a single line of any Linux standard API.

XDG_DIR, Portals, Secrets, D-Bus, the Desktop file spec, Appstream… are there for you to read. 🥰

[-] renzev@lemmy.world 9 points 1 week ago

XDG_DIR, Portals, Secrets, D-Bus, the Desktop file spec, Appstream… are there for you to read. 🥰

Standard compliance is a total mess in the world of linux desktop apps. My pet peeve is that $XDG_RUNTIME_DIR should point to a customizeable tmpfs that apps can use to store temporary data. But just TRY setting to anything else besides /run/user/1000 lol. Half your apps will be broken. Even apps that are made by/for the freedesktop people (e.g. Helvum, the pipewire patchbay app) struggle with this lol. This spec came out in 2021 -- three years ago -- and it's already ossified to the point of being barely useful. At this point I don't blame devs who say "fuck it" and just dump their tempfiles into /tmp the way ~~god~~ dennis ritchie intended.

[-] LainTrain@lemmy.dbzer0.com 8 points 1 week ago* (last edited 1 week ago)

It gets worse, when I was doing a refine of a Mistral-7B, on both the Linux and windows rigs the default location was somewhere on my OS drive in either %appdata% or some .config/.cache bullshit which stored the entire LLM along with all checkpoints and whatnot.

Nutter. My C drive on windows is a 120GB, all my programs are on my Q drive in software RAID. With Linux I follow the same principle, all heavy files are on a separate partition.

[-] possiblylinux127@lemmy.zip 2 points 1 week ago

Run containers and VMs. You have way more control.

load more comments (8 replies)
[-] projjalm@lemy.lol 4 points 1 week ago

I like how electron shit's "configurations" are also trash

[-] possiblylinux127@lemmy.zip 2 points 1 week ago

You'd think they would do better. Isn't that part of the point of using Electron?

[-] Mwa@lemm.ee 3 points 1 week ago* (last edited 1 week ago)

IntelliJ IDEA runs on a jvm right not a electron app??

[-] kuberoot@discuss.tchncs.de 4 points 1 week ago* (last edited 1 week ago)

I think it might still be dropping executables in .config, stuff like the JDK or even its own software versions

[-] qaz@lemmy.world 2 points 1 week ago

Yes mostly Java and Kotlin with a combination of Java Swing and Compose for the GUI afaik

load more comments (2 replies)
[-] dev_null@lemmy.ml 2 points 1 week ago* (last edited 1 week ago)

Apps I write put config files in XDG_CONFIG_HOME/appname/, which is usually ~/.config/appname/. What's wrong with that?

[-] expr@programming.dev 9 points 1 week ago

1GB of files is not configuration.

load more comments (1 replies)
[-] zaubentrucker@sopuli.xyz 2 points 1 week ago

Thats how its supposed to be, but if your config dir is tens of megabytes large, you're doing something wrong

load more comments
view more: next ›
this post was submitted on 23 Feb 2025
154 points (97.5% liked)

linuxmemes

22622 readers
262 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn. Even if you watch it on a Linux machine.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. 🇬🇧 Language/язык/Sprache
  • This is primarily an English-speaking community. 🇬🇧🇦🇺🇺🇸
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  •  

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 2 years ago
    MODERATORS