509
all 47 comments
sorted by: hot top controversial new old
[-] Andromxda@lemmy.dbzer0.com 3 points 44 minutes ago

Please use $XDG_CONFIG_HOME (and other XDG base dies)

[-] Xylight@lemm.ee 4 points 1 hour ago

Use xdg-ninja to help clear out unwanted files not in your home folder, and give tips to move them into a normal folder like .config

[-] voodooattack@lemmy.world 9 points 6 hours ago

laughs in home-manager

[-] callyral@pawb.social 0 points 2 hours ago
[-] thedeadwalking4242@lemmy.world 2 points 1 hour ago

Nixos still slaps your home route with a bunch of . Files

[-] callyral@pawb.social 1 points 24 minutes ago

Yes, but I never have to look at them

[-] dan@upvote.au 87 points 12 hours ago* (last edited 12 hours ago)

but please don't hard-code ~/.config or $HOME/.config. Use the XDG_CONFIG_HOME environment variable, with $HOME/.config as a fallback if it's not set.

Many programming languages have a cross-platform implementation of this built in to their standard library. C# has Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) which uses XDG_CONFIG_HOME on Linux, local AppData on Windows, and whatever is the correct thing on MacOS (not very familiar with how things work on MacOS)

[-] 2xsaiko@discuss.tchncs.de 6 points 6 hours ago

On macOS, the correct thing to use is usually NSUserDefaults API, or - [NSFileManager URLsForDirectory:inDomains:] with NSApplicationSupportDirectory (gives a list of paths to find your config file in, like XDG_CONFIG_DIRS)

[-] Ahrotahntee@lemmy.ca 194 points 16 hours ago

Attention electron developers: under no circumstances do I want your entire app in .config.

[-] mke@programming.dev 93 points 14 hours ago

You feel the curling of the monkey's paw; the entire app is now in ~/.local/AppName

[-] dx1@lemmy.world 14 points 3 hours ago* (last edited 3 hours ago)

Even better, ~/.local/share/

[-] Natanox@discuss.tchncs.de 59 points 14 hours ago

XDG? OpenDesktop? Dunno what that is, time to dump everything into ~/.myawesomeapp

[-] luciferofastora@lemmy.zip 10 points 5 hours ago

Just dump it in ~

[-] ikidd@lemmy.world 39 points 12 hours ago

Oh, no. Don't even make it a hidden folder, it needs to be right there, front and center. And make sure you use a bunch of capital letters in the name, because you're so fucking important.

[-] Irelephant@lemm.ee 11 points 7 hours ago
[-] ikidd@lemmy.world 3 points 3 hours ago

And Arduino.

[-] Fisch@discuss.tchncs.de 2 points 4 hours ago

At least it gives you the option to change it

[-] kautau@lemmy.world 17 points 13 hours ago

I’ve been forcing myself to learn to use NixOS with home-manager just to avoid this. Not to worry, it’s just my home.nix that’s a dumpster fire now

[-] rumba@lemmy.zip 5 points 12 hours ago

I've been using Nix for a little more than a year, I don't think I've touched my configs in better than 6 months. I'm honestly not entirely certain what would constitute a dumpster fire in a Nix config

I've probably only modified 50 or 60 lines of the default configs.

I do have a folder full of shell.nix files when I need to do a special workflow, like I have one that kicks up wine and sets up mp3tag, another that sets up rust, another sets up Python, and one that sets up for yt-dlp. But I don't carry anything in my base configs that I don't use in a given week

[-] silasmariner@programming.dev 2 points 3 hours ago

I set up a nix os for a friend once. Forgot the master password. It's been 5 years. Oh well.

[-] nichtburningturtle@feddit.org 69 points 17 hours ago

It's still a lot better that creating random .folders per application in your home.

[-] 30p87@feddit.org 13 points 8 hours ago
[-] poplargrove@lemmy.world 4 points 3 hours ago
[-] 30p87@feddit.org 1 points 2 hours ago

Of course. Everything else is hosted on other's servers, and here I have the choice between dozens of storages, mainly selfhosted ones. The only exception being KeePassXC - but that's what rclone/rsync are for. So the DB resides on a WebDAV share on my Nextcloud now.

[-] SpaceCadet@feddit.nl 2 points 1 hour ago

Everything else is hosted on other’s servers

You can self-host bitwarden with vaultwarden.

[-] death_to_carrots@feddit.org 45 points 8 hours ago

The font in the screenshot makes me angry.

[-] Kusimulkku@lemm.ee 3 points 3 hours ago

I like it. Makes me think of teletext

[-] 30p87@feddit.org 7 points 7 hours ago

Idk what happened there either. After updating from Android 12 to 13, this is how it was ever since. And now I'm used to it.

[-] Irelephant@lemm.ee 2 points 7 hours ago

Konsole once did that to me, and started inserting random tabs.

[-] The_Terrible_Humbaba@slrpnk.net 3 points 5 hours ago

Hey! Would you mind guiding me as to what is going on in this picture? Is this an APP that allowed to SSH into your server? You got my attention with this picture, and I'm curious to hear more.

[-] 30p87@feddit.org 5 points 4 hours ago

It's Termux, basically a fully fletched terminal for Android. So you can install various tools via apt, and use them, for example yt-dlp, ffmpeg, gcc, python etc. And yes, you can also use SSH, both as server and client. I use it very often to connect to my servers on the go.

You can even use chroot to basically run a distro of your choice.

[-] The_Terrible_Humbaba@slrpnk.net 4 points 4 hours ago

Damn, that sound pretty cool, thanks for the info!

[-] LainTrain@lemmy.dbzer0.com 30 points 16 hours ago* (last edited 16 hours ago)

Nah just put it in ~/.thing-config.d/01-0x45- 110100100-main.options-extra2cache.swp along with three godzillion other files like it's normal and very sane for users who edit such files to have the big picture of the default configuration dreamed up by some utterly deranged lunatic be spread across enough files to represent all known stars in the galaxy, standards are for losers amirite ^/s^

[-] jeena@piefed.jeena.net 35 points 17 hours ago

It really depends for what. I don't think nginx config should be in $HOME/.conf/

[-] user224@lemmy.sdf.org 66 points 16 hours ago

Right? It goes into ~/Documents/

SMH my head

[-] UndulyUnruly@lemmy.world 44 points 14 hours ago

Everything into ~/Downloads/ until the partition is full.

[-] ikidd@lemmy.world 1 points 12 hours ago

First thing I do on a new install is purge the home folder of every default folder, and symlink Downloads to another partition.

Whoever standardized that shit in there like Templates needs to be shot with a ball of their own feces.

[-] savvywolf@pawb.social 6 points 9 hours ago

https://wiki.archlinux.org/title/XDG_user_directories

You can actually change those locations rather than using symlinks. I have them as subfolders in ~/xdg/ on my system.

[-] Max_P@lemmy.max-p.me 25 points 16 hours ago* (last edited 16 hours ago)

Unless it's running as your own user as part of your session. /etc for system-wide and ~/.config for your own user makes a lot of sense.

[-] PoolloverNathan@programming.dev 5 points 13 hours ago

They want ~/etc/ in their home, which just seems like a renamed ~/.config/.

[-] Hobbes_Dent@lemmy.world 18 points 16 hours ago
[-] Kusimulkku@lemm.ee 2 points 3 hours ago

Isn't that just .config?

[-] horse_battery_staple@lemmy.world 5 points 16 hours ago

I'm in this picture and I don't like it

[-] collapse_already@lemmy.ml 2 points 3 hours ago

I think this picture would be an upgrade from my current situation. It is perfectly normal to have to use sudo find from root to locate anything, isn't it? It's especially fun when you don't remember what the thing you are looking for is called and are trying to guess the name to find.

this post was submitted on 25 Dec 2024
509 points (97.9% liked)

linuxmemes

21611 readers
1339 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 members of the community for any reason.
  • 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, and wants to interject for a moment. You can stop now.
  •  

    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 fork-bomb your computer.

    founded 2 years ago
    MODERATORS