this post was submitted on 14 Jul 2024
285 points (94.7% liked)

Linux

46794 readers
961 users here now

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

Related Communities

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

founded 5 years ago
MODERATORS
 

Shameless plug: I am the author.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] -3 points 1 month ago (3 children)

This would just further complicate things for me. It assumes that 1) the system even has a windowing system/desktop environment or 2) all the installed software is XDG-aware. Most of the time I’m fiddling with headless environments.

[–] [email protected] 25 points 1 month ago (1 children)

It's not too hard to check for XDG support first and use a few hardcoded directory paths if that is unavailable.

[–] [email protected] 24 points 1 month ago

So yes, "XDG" stands for "Cross-Desktop Group" - but I don't agree that using the spec assumes a windowing system. The base directory spec involves checking for certain environment variables for guidance on where to put files, and falling back to certain defaults if those variables are not set. It works fine on headless systems, and on systems that are not XDG-aware (I suppose that means systems that don't set the relevant env vars).

OTOH as another commenter pointed out the base directory spec can make software work when it otherwise wouldn't on a system that doesn't have a typical home directory layout or permissions.

[–] [email protected] 11 points 1 month ago* (last edited 1 month ago)

The spec doesn't make those assumptions at all, idk where that's coming from.

I have headless machines with XDG vars configured and ones without them. XDG compliant software works in either case, but I'm less likely to use a piece of software that clutters my $HOME.