this post was submitted on 25 Dec 2024
626 points (98.5% liked)

linuxmemes

21616 readers
1368 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
     
    top 50 comments
    sorted by: hot top controversial new old
    [–] daggermoon 1 points 4 hours ago

    I just throw lots of dumb shit in my home directory. I actually have the Windows Entertainment Pack for Windows 3.1 in a folder in there. Runs great in WINE. Home directory is great for storing random files.

    [–] [email protected] 28 points 18 hours ago

    Please use $XDG_CONFIG_HOME (and other XDG base dies)

    [–] [email protected] 16 points 19 hours 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

    [–] [email protected] 109 points 1 day ago* (last edited 1 day ago) (2 children)

    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)

    [–] [email protected] 2 points 3 hours ago

    Never new about this! That's very handy

    [–] [email protected] 6 points 1 day ago (1 children)

    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)

    [–] [email protected] 221 points 1 day ago (1 children)

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

    [–] [email protected] 118 points 1 day ago (1 children)

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

    [–] dx1 22 points 21 hours ago* (last edited 21 hours ago)

    Even better, ~/.local/share/

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

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

    [–] [email protected] 19 points 23 hours ago

    Just dump it in ~

    [–] ikidd 57 points 1 day ago (1 children)

    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.

    [–] [email protected] 19 points 1 day ago (2 children)
    [–] ikidd 8 points 20 hours ago

    And Arduino.

    [–] [email protected] 4 points 22 hours ago

    At least it gives you the option to change it

    [–] voodooattack 12 points 1 day ago

    laughs in home-manager

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

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

    [–] [email protected] 15 points 1 day ago (4 children)
    [–] [email protected] 57 points 1 day ago (2 children)

    The font in the screenshot makes me angry.

    [–] [email protected] 4 points 21 hours ago (1 children)

    I like it. Makes me think of teletext

    [–] [email protected] 9 points 1 day ago (1 children)

    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.

    [–] [email protected] 4 points 1 day ago

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

    [–] poplargrove 5 points 21 hours ago (1 children)
    [–] [email protected] 2 points 19 hours ago (1 children)

    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.

    [–] [email protected] 4 points 19 hours ago

    Everything else is hosted on other’s servers

    You can self-host bitwarden with vaultwarden.

    [–] [email protected] 4 points 22 hours ago (1 children)

    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.

    [–] [email protected] 7 points 22 hours ago (1 children)

    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.

    [–] [email protected] 4 points 21 hours ago (1 children)

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

    [–] [email protected] 2 points 4 hours ago

    It's also incredibly useful to backup /sdcard via rsync or Borg every night automatically

    Or access the contents of your phone via SFTP

    [–] [email protected] 35 points 1 day ago* (last edited 1 day 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^

    [–] kautau 21 points 1 day ago (2 children)

    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

    load more comments (2 replies)
    [–] [email protected] 36 points 1 day ago (2 children)

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

    [–] [email protected] 70 points 1 day ago (1 children)

    Right? It goes into ~/Documents/

    SMH my head

    [–] UndulyUnruly 49 points 1 day ago (2 children)

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

    load more comments (2 replies)
    [–] [email protected] 24 points 1 day ago* (last edited 1 day ago) (1 children)

    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.

    [–] [email protected] 6 points 1 day ago

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

    [–] Hobbes_Dent 18 points 1 day ago (1 children)
    [–] [email protected] 3 points 21 hours ago

    Isn't that just .config?

    [–] [email protected] 1 points 20 hours ago (1 children)
    [–] thedeadwalking4242 4 points 19 hours ago (1 children)

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

    [–] [email protected] 5 points 18 hours ago (2 children)

    Yes, but I never have to look at them

    [–] daggermoon 1 points 4 hours ago

    You guys don't use show hidden files?

    [–] thedeadwalking4242 2 points 17 hours ago
    load more comments
    view more: next β€Ί