this post was submitted on 14 Jul 2024
7 points (100.0% liked)

Linux

47237 readers
3343 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.

top 21 comments
sorted by: hot top controversial new old
[–] [email protected] 5 points 2 months ago (3 children)

Golang puts shit specifically in $HOME/go. Not even .go. Just plain go.

Why is it so difficult to follow industry standards

[–] [email protected] 2 points 2 months ago (1 children)

Google

following industry standards

pick one

[–] [email protected] 1 points 2 months ago

This post literally links to the leading one.

[–] [email protected] 2 points 2 months ago (1 children)

That's what happens when you don't set $GOPATH I think

[–] [email protected] 1 points 2 months ago

That doesn't make it better.

[–] [email protected] 0 points 2 months ago* (last edited 2 months ago)

Go pisses me off with that. I separate projects the way I want but go wants every project written in go in one big directory?

[–] [email protected] 3 points 2 months ago (1 children)

Shout out to xdg-ninja - it'll find files that are in your home and suggest how to configure the app to use XDG instead. https://github.com/b3nj5m1n/xdg-ninja

[–] [email protected] 1 points 2 months ago

Strange that some apps allow configuring it rather than just doing it automatically...

[–] [email protected] 2 points 2 months ago

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

[–] [email protected] 2 points 2 months ago

YOU'RE NOT MY MOM I'LL DO WHAT I WANT

[–] [email protected] 2 points 2 months ago* (last edited 2 months ago) (2 children)

100% agree and I also despise devs who do this on windows, instead of using %appdata% they’re using c:\users\username\.myappisimportantandtotallydeservesthisdir

[–] [email protected] 1 points 2 months ago

I think that also causes issues for roaming profiles and folder redirection. If roaming is turned on then everything in the %appdata%\roaming folder is synced to a server. %AppData%\Local is not. So if your app is using %AppData%\Roaming for temporary data then you are causing a whole bunch on unnecessary IO. Same for using Documents since that if often synced.

[–] [email protected] 0 points 2 months ago (1 children)

To be fair here, appdata is technically a hidden folder and there are lots of reasons an app would want it's data accessable by the user.

[–] [email protected] 1 points 2 months ago

Yes but then just spam the documents folder like anyone else, don’t hoard the home root for no reason except that is a lazy cross platform port

[–] [email protected] 1 points 2 months ago

BRB, putting in a PR to make /etc mode 1777 by default.

[–] [email protected] 1 points 2 months ago

Shameless flex

[–] [email protected] 0 points 2 months ago (2 children)

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

[–] [email protected] 1 points 2 months ago

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.

[–] [email protected] 1 points 2 months ago

Better organization and backup / restore. For example if you want to restore config files but don't want to move over the large ".local" folder, applications that write to $HOME will create diifculty.

[–] [email protected] 0 points 2 months ago (1 children)

Probably half the entries in that list are not GUI apps, and XDG doesn't apply (though some still support it). For some others there (like emacs) XDG is used if it exists.

[–] [email protected] 1 points 2 months ago

XDG doesn't apply for CLI apps? About half of dirs I still have cluttering my home are GUI apps whose devs refuse to follow the specification, while I see less friction from CLI/TUI devs, since they're the ones actually seeing these hidden locations.