• Ahrotahntee@lemmy.ca
    link
    fedilink
    arrow-up
    241
    ·
    24 days ago

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

      • lengau
        link
        fedilink
        arrow-up
        3
        ·
        4 days ago

        I mean… At least that’s more correct… If the monkey’s paw is giving us things that are better but not ideal i’m gonna use the fuck out of it.

    • Artyom@lemm.ee
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      22 days ago

      As an alternative, how about my entire cache in .config?

      Looking at you VSCode, with 3 unique cache folders.

  • dan@upvote.au
    link
    fedilink
    arrow-up
    130
    ·
    edit-2
    24 days 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)

    • LainTrain@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      39
      arrow-down
      2
      ·
      edit-2
      24 days 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

        • Lucy :3@feddit.org
          link
          fedilink
          arrow-up
          2
          ·
          23 days 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.

      • The_Terrible_Humbaba@slrpnk.net
        link
        fedilink
        arrow-up
        4
        ·
        24 days 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.

        • Lucy :3@feddit.org
          link
          fedilink
          arrow-up
          8
          ·
          24 days 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.

            • Magnetic_dud@discuss.tchncs.de
              link
              fedilink
              arrow-up
              3
              ·
              23 days 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

              • tritonium
                link
                fedilink
                arrow-up
                2
                ·
                edit-2
                21 days ago

                I like using syncthing. It syncs all my apps that are backed up with neobackup, my pictures, files etc. to my NAS. Then my NAS runs borg on that directory as well as all the other important NAS directories to make the legit backups.

                I have termux installed but I honestly rarely use it. Hate typing on the phone in the terminal… if I need to do it then I’ll just adb connect from my computer and do it from there on a real keyboard.

                • Magnetic_dud@discuss.tchncs.de
                  link
                  fedilink
                  arrow-up
                  1
                  ·
                  21 days ago

                  I also did the same as you but because they discontinued the official syncthing app on Android I skipped the "sync to PC first step. Now I directly go to Borg from phone night time only when charging, the automate app is able to invoke termux and run the backup script

                  Many times it happened the syncthing app crashed in background and I didn’t notice before after several days, now if the Borg repository server (borgwarehouse, it’s a must have) doesn’t see activity after some user specified time sends me a warning email

  • kautau@lemmy.world
    link
    fedilink
    arrow-up
    22
    ·
    24 days 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
      link
      fedilink
      English
      arrow-up
      5
      ·
      24 days 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

  • Xylight@lemm.ee
    link
    fedilink
    arrow-up
    18
    ·
    23 days 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

  • DeaDvey@lemmy.ml
    link
    fedilink
    arrow-up
    8
    ·
    22 days ago

    I keep my home directory nice and tidy in terms of visible files/folders, but as soon as you ls -a there’s so much random shit

  • daggermoon@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    23 days 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.