Orbi Camp
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
0x4E4F@lemmy.dbzer0.com to linuxmemes@lemmy.world · 1 year ago

Please use .config 😭

lemmy.dbzer0.com

message-square
35
fedilink
30

Please use .config 😭

lemmy.dbzer0.com

0x4E4F@lemmy.dbzer0.com to linuxmemes@lemmy.world · 1 year ago
message-square
35
fedilink
alert-triangle
You must log in or register to comment.
  • Ahrotahntee@lemmy.ca
    link
    fedilink
    arrow-up
    12
    ·
    1 year ago

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

    • mke@programming.dev
      link
      fedilink
      arrow-up
      8
      ·
      1 year ago

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

      • lengau@midwest.social
        link
        fedilink
        arrow-up
        4
        ·
        11 months 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.

      • dx1@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        1 year ago

        Even better, ~/.local/share/

    • Artyom@lemm.ee
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      1 year 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
    10
    ·
    edit-2
    1 year 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)

    • dblsaiko@discuss.tchncs.de
      link
      fedilink
      arrow-up
      3
      ·
      1 year 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)

    • lengau@midwest.social
      link
      fedilink
      arrow-up
      1
      ·
      11 months ago

      In Python the equivalent library is platformdirs

    • houseofleft@slrpnk.net
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Never new about this! That’s very handy

  • DeaDvey@lemmy.ml
    link
    fedilink
    arrow-up
    3
    ·
    1 year 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

  • Andromxda 🇺🇦🇵🇸🇹🇼@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    1 year ago

    Please use $XDG_CONFIG_HOME (and other XDG base dirs)

  • HStone32@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    Is that the Stanley cup in the first image?

  • Xylight@lemm.ee
    link
    fedilink
    arrow-up
    1
    ·
    1 year 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

  • Nicht BurningTurtle@feddit.org
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

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

    • LainTrain@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      1 year 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
      0
      ·
      1 year ago

      1000042326

      • death_to_carrots@feddit.org
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        The font in the screenshot makes me angry.

      • The_Terrible_Humbaba@slrpnk.net
        link
        fedilink
        arrow-up
        0
        ·
        1 year 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
          1
          ·
          1 year 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
            link
            fedilink
            arrow-up
            1
            ·
            1 year ago

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

            • Magnetic_dud@discuss.tchncs.de
              link
              fedilink
              arrow-up
              1
              ·
              1 year 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@midwest.social
                link
                fedilink
                arrow-up
                1
                ·
                edit-2
                1 year 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.

  • Natanox@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

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

    • luciferofastora@lemmy.zip
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Just dump it in ~

    • ikidd@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year 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 [he/him]🍭@lemm.ee
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        Android Studio

  • ubergeek@lemmy.today
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 year ago

    First line of my /etc/profile:

    export XDG_CONFIG_HOME=~/

  • Hobbes_Dent@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    Just give me ~/etc/

  • Jeena@piefed.jeena.net
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

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

    • Max-P@lemmy.max-p.me
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      1 year 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.

    • u/lukmly013 💾 (lemmy.sdf.org)@lemmy.sdf.org
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 year ago

      Right? It goes into ~/Documents/

      SMH my head

      • UndulyUnruly@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

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

  • cally [he/they]@pawb.social
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    Laughs in NixOS

    • thedeadwalking4242@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

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

      • cally [he/they]@pawb.social
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        Yes, but I never have to look at them

linuxmemes@lemmy.world

linuxmemes@lemmy.world

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Hint: :q!


Sister communities:
  • [email protected]
  • [email protected]
  • [email protected]
  • [email protected]

Community rules (click to expand)

1. Follow the site-wide rules
  • Instance-wide TOS: https://legal.lemmy.world/tos/
  • Lemmy code of conduct: https://join-lemmy.org/docs/code_of_conduct.html
2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like “every user of thing”.
  • Don’t get baited into back-and-forth insults. We are not animals.
  • 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.
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, no politics, no trolling or ragebaiting.
  • Don’t come looking for advice, this is not the right community.
4. No recent reposts
  • Everybody uses Arch btw, can’t quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
5. 🇬🇧 Language/язык/Sprache
  • This is primarily an English-speaking community. 🇬🇧🇦🇺🇺🇸
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
6. (NEW!) Regarding public figures

We all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.

  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.

 

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 remove France.

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.55K users / day
  • 4.68K users / week
  • 7.61K users / month
  • 16.6K users / 6 months
  • 1 local subscriber
  • 28.4K subscribers
  • 1.35K Posts
  • 44.2K Comments
  • Modlog
  • mods:
  • zephyr@lemmy.world
  • rtxn@lemmy.world
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org