Shameless plug: I am the author.

18 points

I wish they used them all, especially XDG_CACHE_HOME which can become pretty big pretty fast.

permalink
report
reply
11 points

I didn’t know about this (and thankfully, haven’t written anything public). I’ve been trying to fix an install script for an OSS project that doesn’t work on immutable distros, and using the XDG Base Directory specs might just be the panacea I was looking for!

permalink
report
reply
7 points

Shameless flex

permalink
report
reply
8 points

I regret checking this

permalink
report
parent
reply
2 points

Whoa I’m a stickler for getting as much as I can out but even I have .zshenv and some other too hard to figure out things in there. How’d you manage a total wipeout?

permalink
report
parent
reply
1 point
*

zsh is actually easy and it is detailed in the archwiki

You have to set $ZDOTDIR in /etc/zsh/zshenv and iirc that was the only location that required root to edit.

For the rest of stuff, here is how I fix steam for example and you can check the rest of my dotfiles for how I configured zsh and all of that.

Although I haven’t updated them, I still had a .local directory back then, it was 1 week ago that I changed .local for Local and that let to an issue with distrobox which I made a PR fixing it that’s still open though.

permalink
report
parent
reply
2 points

That’s awesome!

permalink
report
parent
reply
5 points

there’s no place like 127.0.0.1

there’s no place like XDG_CONFIG_HOME.

permalink
report
reply
3 points

But what’s the difference? It’ll be in /home anyways and I heard BSD had some issues with something that could be XDG.

permalink
report
reply
12 points

For me personally I just hate that I do not know where to find configs, especially when using a dotfiles repo, it becomes harder than if they’re all available under a common path.

permalink
report
parent
reply
10 points
*

But what’s the difference?

I can only imagine someone asking this if they a) don’t use the terminal except if Stackexchange says they should and b) have yet to try and cleanup a system that’s acquired cruft over a few years. If you don’t care about it, then let me flip that around and ask why you care if people use XDG? The people who care about it are the people in the spaces that concern it.

Off the top of my head this matters because:

  • it’s less clutter, especially if you’re browsing your system from terminal
  • it’s a single, specified place for user specific configs, session cache, application assets, etc. Why wouldn’t such important foundational things required for running apps not be in a well defined specification? Why just dump it gracelessly in the user’s root folder outside of pure sloppy laziness?
  • it makes uninstalling apps easier
  • it makes maintenance easier
  • it makes installing on new machines easier

It’ll be in /home anyways and I heard BSD had some issues with something that could be XDG.

🙄

permalink
report
parent
reply
2 points
*

Someone asking a question doesnt merit the insult of saying they “would never ask if they used a terminal.” I have no particular dog in this fight, but not being a dick isn’t that hard.

As to using this standard, just because this is your preferred standard, doesnt mean its the only standard.

It may actually be the best now, but so were the 14 others that came before it. Your stated reasons are the same reasons as everyone agreeing to use any other standard. Consistency, predictability, automation,ease of backup/restore, etc.

What sets this standard apart from all the rest? Based on their own description, they aren’t even an official standard, just one in “very active” use.

So why this, specifically? Just because its what you’re already doing?

permalink
report
parent
reply
2 points
*

Someone asking a question doesnt merit the insult of saying they “would never ask if they used a terminal.” I have no particular dog in this fight, but not being a dick isn’t that hard.

This is true, and something that I’m working on. For some reason my brain is uncharitable in these situations and I interpret it not as a simple question but a sarcastically hostile put down in the form of a question. In this case, “Why would you be dumb and not just put things in /home”. That really is a silly interpretation of the OP question, so I apologize.

As to using this standard, just because this is your preferred standard, doesnt mean its the only standard.

Sure, but the OP was essentially asking “Why isn’t dumping everything into a user’s /home the standard? Why are you advocating for something different?”

Based on their own description, they aren’t even an official standard, just one in “very active” use.

There are a LOT of “unofficial standards” that are very impactful. System D can be considered among those. The page you link to does talk about a lot of specifications, but it also says that a lot of them are already under the XDG specification or the reason for XDG is to bring such a scheme under a single specification, i.e. XDG.

So why this, specifically? Just because its what you’re already doing?

  • yes I do use it, so I am definitely biased in that regard
  • it bring a bunch of disparate mostly abandoned specification into a single, active one
  • it’s the active specification that has learned from past attempts
permalink
report
parent
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 2K

    Monthly active users

  • 2.9K

    Posts

  • 16K

    Comments