this post was submitted on 28 Sep 2023
5 points (100.0% liked)

Linux

59299 readers
476 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 6 years ago
MODERATORS
top 24 comments
sorted by: hot top controversial new old
[–] AKADAP@lemmy.ml 3 points 2 years ago (1 children)

I absolutely despise the following directories: Documents, Music, Pictures, Public, Templates, Videos. Why? Because applications randomly dump stuff into these directories and fill them with junk files. I don't want any application putting anything into directories I actually use, unless I explicitly tell them to. It is not possible to keep your files organized if applications randomly dump trash files into them.

[–] herr@lemmy.world 1 points 2 years ago

Same shit happens on Windows. Games will just install their shit literally all over OS with no rhyme or reason to it.

Why can't the save game and config.ini just be in the main god damn game directory? Nobody knows.

[–] ouch@lemmy.world 1 points 2 years ago (3 children)

If you care, please take time to upvote or file bugs on packages that don't follow XDG. Or even better, make PRs.

[–] aulin@lemmy.world 1 points 2 years ago

A (very well used) program I use places files in $HOME. Someone argued for changing to $XDG_CONFIG or at least add that as an option. The dev, being used to the old school way, gave the exact opposite reason: that .config was just an extra level of organization when dotfiles are what the home dir is for. So I'm not sure how successful you would be with that approach.

To be clear, I am clearly on the side of XDG, myself.

[–] kogasa@programming.dev 0 points 2 years ago (3 children)

Those bugs and PRs would just get closed without comment. Nobody is going to move a dotfile as a breaking change in any established software. You either get it right the first time or probably never.

[–] duncesplayed@lemmy.one 1 points 2 years ago* (last edited 2 years ago)

Nobody is going to move a dotfile as a breaking change in any established software

We have oodles of counterexamples to this. GIMP did it, Blender did it, DOSBox did it, Libreoffice did it, Skype did it, Wireshark did it, ad nauseum. It's not really as big a deal as you make it to be (or a big deal at all). You have a transitional period where you look for config files in both locations, and mark the old location as obsolete.

[–] gerdesj@lemmy.ml 1 points 2 years ago

They will if enough people whine about it.

In the old days (I'm 50+) tumbleweed drifted through ~/ apart from my drivel and I'd have a folder for that so /home/gerdesj/docs was the root of my stuff. I also had ~/tmp/ for not important stuff. I don't have too much imagination and ~/ was pretty clean. I was aware of dot files and there were a shit load of them but I didn't see them unless I wanted to.

This really isn't the most important issue ever but it would be nice if apps dumped their shit in a consistently logical way. XDG is the standard.

[–] nous@programming.dev 1 points 2 years ago

The software can read from both locations in a backwards compatible way. Many tools already do this.

[–] cbarrick@lemmy.world 0 points 2 years ago (1 children)

XDG is a Red Hat thing.

Stuff outside of their influence is unlikely to change, like OpenSSH or ZSH.

[–] flying_sheep@lemmy.ml 1 points 2 years ago

Old things like that get a pass. New tools and frameworks should definitely obey the standards.

[–] nyan@lemmy.cafe 1 points 2 years ago (1 children)

Y'know what's worse? When there's no dot. Worse than that, it's an undotted directory used to store a single config file. Ugh, unpleasant memories. 😒

[–] pivot_root@lemmy.world 1 points 2 years ago

~/go is one of my major pet peeves.

[–] xXthrowawayXx@hexbear.net 1 points 2 years ago

Also if the normal invocation of your program produces more than 3k lines of stdout, sanitize it and default to a file.

[–] gnutrino@programming.dev 1 points 2 years ago (1 children)

I just write my config files directly to random unused blocks on /dev/sda, filesystems are overrated.

[–] chaorace@lemmy.sdf.org 0 points 2 years ago (1 children)

Nah, dump em' to /tmp/ and let the user figure out the rest

[–] hperrin@lemmy.world 0 points 2 years ago (1 children)

I just leave all config in memory. If the user really cared, they would never reboot.

[–] CalcProgrammer1@lemmy.ml 0 points 2 years ago (1 children)

I just hard code all config in the source code. If the user really cared, they would recompile from source.

[–] clearleaf@lemmy.ca 1 points 2 years ago

A suckless fan I see

[–] TankieTanuki@hexbear.net 1 points 2 years ago

I hate it when an application puts its configuration data in its own dotfile under $HOME instead in ~/.config. Also hate it when caches are stored in ~/.config, because then I have to manually tag those subdirectories for exclusion before doing a backup.

[–] Urist@lemmy.ml 1 points 2 years ago* (last edited 2 years ago) (1 children)

Tangentially related: I recently learned that there are tools for handling dotfiles such as chezmoi and yadm. I would suppose that after spending some time on backing up the dotfiles that matter one can purge the remainders without much issue. I also remember some tool that was made for the purpose of cleaning $HOME, but can not recall its name (if anyone knows please let me know).

[–] masterofn001@lemmy.ca 1 points 2 years ago (1 children)
[–] Urist@lemmy.ml 1 points 2 years ago

Yes, that is the one. Thanks!

[–] Blizzard@lemmy.zip 1 points 2 years ago

My $HOME is my castle (・へ・)

[–] Gleddified@lemmy.ca 1 points 2 years ago

One of my greatest pet peeves is random folders appearing in my home folder. Thanks for this