• @[email protected]
    link
    fedilink
    English
    431 year ago

    This isn’t really accurate for either side. For Linux, I’ve had crap shove configs in ~, /etc, /var, at least.

    On Windows, it could be literally anywhere or in the registry.

    • Hello Hotel
      link
      fedilink
      English
      7
      edit-2
      1 year ago

      Or ~/.local/share/${software_name_or_whatever}… Or ~/.${software_name_or_whatever}/

      Oof

    • @[email protected]
      link
      fedilink
      English
      81 year ago

      That’s one thing I especially like about Flatpaks on the Linux side. Everything’s in ~/.var.

    • @[email protected]
      link
      fedilink
      11 year ago

      The idea of the registry is so freaking nice. Imagine if all the configs of a system could be changed through a centralized and consistent API.

  • NostraDavid
    link
    fedilink
    31 year ago

    Have you found appdata/local/Application Data? It’s a “conjunction point” that you can only find via the command line, and only exists for backwards compatibility. It points to appdata/… Do not EVER try to gain access over all your files in appdata/. It’ll break due to that conjunction point.

    • @[email protected]OP
      link
      fedilink
      English
      21 year ago

      There are symlinks in Windows all over the place for backwards compatibility. Just look at “Documents and Settings”, it’s a symlink to ”Users".

      Yet, you still have to install the same libraries with every app over and over, even though they can be shared. Why? Because Windows has no sense of default library locations, except for the things it absolutely needs to work.

  • ChaoticNeutralCzech
    link
    fedilink
    16
    edit-2
    1 year ago

    Some people have diacritics and spaces in their usernames, which wreaks havoc for badly written programs accessing AppData or folders in the user’s “home” directory, such as Documents. And there are lots of such programs.

    When setting up Windows, use a short and memorable, DOS-compatible username, and then change it later (the home folder will still have the old name). You can then move indiidual Libraries (Documents, Downloads, Music, Pictures and Videos) to the root of D:\ too.

    • @[email protected]
      link
      fedilink
      5
      edit-2
      1 year ago

      programs writing shit in the document folder are so freaking annoying. I typically backup my document folder, as they contains most of my user files.

      And some stupid program just decide to litter it with their temporary file, and game saves…

      • ChaoticNeutralCzech
        link
        fedilink
        21 year ago

        It is okay if they only do what you asked for.

        “Okay, Audacity, save to ‘C:\Users\me\Documents\recording.aup’”

        *folder 'C:\Users\me\Documents\recording_data' shows up*

        • @[email protected]
          link
          fedilink
          11 year ago

          Oh no, I think AoE (some version) will sometimes save game file to Documents, and IIRC, wechat will save temp file to documents without user interaction

  • Endorkend
    link
    fedilink
    151
    edit-2
    1 year ago

    This is major league bullshit tho.

    On linux, where the config file for a specific program is, can vary annoyingly greatly depending on what distro you’re using and sometimes the same config file exists in several places and somehow certain parts of the configuration parameters get taken from several of those files, so if you think you’ve found what the actual config file should be and remove the duplicates, suddenly the program uses defaults or doesn’t even work at all.

    • @[email protected]
      link
      fedilink
      521 year ago

      Yup. Is it in /usr /var /etc or /opt? Maybe in some hidden home folder? Sure, you can Google it, but there’s no guarantee you’ll find the right answer.

      There are only a handful of places Windows sticks stuff, and it’s pretty predictable.

      • @[email protected]
        link
        fedilink
        31 year ago

        What system wide software stores their configs in anything but /etc? Data, sure, but not configs.

        • @[email protected]
          link
          fedilink
          21 year ago

          Docker installs in /var/lib. Tenable and Nessus use /opt.

          There are tons of packages that store config files in places other than /etc.

          • @[email protected]
            link
            fedilink
            2
            edit-2
            1 year ago

            I don’t know what Tenable and Nessus are. I’m guess you have to install them from outside the package manager or build them from source, in which case, yeah, using /opt for config would be acceptable.

            Docker’s config file is located at:

            /etc/docker/daemon.json
            
            • @[email protected]
              link
              fedilink
              11 year ago

              It’s not in RHEL. Tenable and Nessus are vulnerability scanners, and Nessus at least can be installed via yum.

      • exu
        link
        fedilink
        English
        101 year ago

        Generally /usr should be managed by the package manager, /etc is for global custom configs and the user home is user specific.
        /var shouldn’t really be config, mostly logs or webservers for some reason.

      • @[email protected]
        link
        fedilink
        51 year ago

        Disagree. Take game saves on windows. They can be in appdata\local, appdata\roaming, documents\company-name, documents\savedgames\company-name I’m sure there are more.

        • @[email protected]
          link
          fedilink
          7
          edit-2
          1 year ago

          Nah. 3 places.

          • Appdata subfolder
          • Documents
          • Game installation folder

          Savegame folder is then placed either ina folder with game name or studio name, so easy to check all these locations within minutes.

          Let’s not talk about rpgmaker games tho. I’ve seen them do some wacky shit with gamesaves.

          Edit: To make my point clearer, I disagree with person above me about their disagreement. Savegames on windows are predictable as hell. Thanks to person below for pointing out I didn’t convey. :<

      • shrugs
        link
        fedilink
        61 year ago

        TLDR; Windows crap, I love Linux

        Long read ahead, this resulted in a pretty big rant, but I feel better now:

        Windows has way more silly places. From registry to ini files, assemblies, common files, services, drivers…it’s everywhere.

        Do you know how an MSI packages for software installation work? Let me tell you, it’s a mess. An utter and complete garbage format. A database with hundreds of buggy functions, empty lines and internal inconsistencies. There wasn’t even a way to create them comfortably without paying for expensive software back then. Yea, im looking at you, flexera admin studio.

        I automated hundreds of custom software installations on 2000 clients from windows 2000 to XP to Windows 7 to Windows 10… for >10 years, so I know what I’m talking about.

        On Linux 99% of apps save global settings in /etc and usersettings in /home/user/.* or the newer way XDG_CONFIG_HOME.

        But since all is a file on Linux every config can simply be copied to restore or backup settings. Almost every tool has man pages. How hard is it to run man tool and read the specifics if you need help? Windows? Sometimes you got some help files in a strange format (.hlp?). Other then that, start the browser and ask Google.

        Linux package managing since 2003 has been better then it ever has been on Windows to this day.

        One command to update all components? Packages will be installed and removed automatically to fulfill the dependencies of the software you want to install? Every package is build by a trusty maintainer of the OS instead of some overworked windows engineer that needs to create profit.

        Do you know how Deb files work? They are simpel zips of the folder structure and files the software consists of. A textfile with metadata like maintainer, name, version and, very important: dependencies. Last but not least there are a two or three files that can contain scripts that need to be executed prior or past installation. That’s it. And you can do everything with it.

        On Windows you often are forced to find the right combination of weird parameters to ensure a program starts. commandlines like “c:\windows\powershell.exe -e cmd /c program name”, happen way more often then you would expect.

        On Linux I get: Global package manager and updates with trusted packages, no telemetry, more safety, no ads, better privacy…and many more.

        My personal opinion: I don’t understand how people can even question the superiority of Linux for personal devices.

      • lemmyvore
        link
        fedilink
        English
        171 year ago

        You should never be expected to edit anything in /usr, /opt or /var. That’s highly unusual. For which software did you have to do this?

        • @[email protected]
          link
          fedilink
          61 year ago

          Brother scanner utilities: /opt Pretty sure I had to change something in /usr once, but I forgot what. Now, /var would be very unusual. But most of the time, all the configuration files happen to be somewhere in /etc.

        • @[email protected]
          link
          fedilink
          31 year ago

          Docker on RHEL saves everything in /var/lib, for example. Tenable and Nessus stick it in /opt. I’m currently doing a rhel7->8 upgrade, and that shit gets stuck everywhere.

          But, I also have issues on my Pis. For a lot of the packages I use, I’m lucky if they actually put their .service file in /etc/systemd. Having to run a find / command on a pi can take forever.

    • @[email protected]OP
      link
      fedilink
      English
      21 year ago

      Trust me, that is not Linux specific, Windows has that bullshit as well. Everything depends on how the devs wanted to solve the local settings problem, and if you have devs that work 1 or 2 years on the project and then quit, which in turn are replaced by other devs, you get this bullshit. The new ones usually don’t wanna touch the old one’s code, or if they do, they only make minor changes, just enough to make something that’s not working, work.

  • @[email protected]
    link
    fedilink
    251 year ago

    not seen in this comic: the linux file isn’t where the comic/manual/internet nerds says it should be, and there’s no realistic way to find it

    • dream_weasel
      link
      fedilink
      41 year ago

      Sure there is: find / -name myprogram*.md -o -name myprogram*.txt or start with just looking for the program name and pipe to less

        • dream_weasel
          link
          fedilink
          61 year ago

          The prompt was realistic not simple lol. Usually some man or programname -h and then reading will tell you where to look and that’s simple. Not many people want to hear “RTFM” though.

    • @[email protected]
      link
      fedilink
      2
      edit-2
      1 year ago

      Until flatpak came along and just keeps everything in their respective app sandbox.

      If your app don’t need full user home access (most app don’t), you can use a persistent folder to place the folder in app sandbox instead of home.

      It is not only more clean, but also more secure and private.

    • @[email protected]
      link
      fedilink
      21 year ago

      Nonsense. And even if the config file cannot be found in the usual directories then there are always tools like KFind that can search your entire OS within seconds.

      • @[email protected]
        link
        fedilink
        111 year ago

        congratulations. you’ve just sent a linux newb down a 12 hour rabbit hole that doesn’t actually solve their problem.

        • @[email protected]
          link
          fedilink
          21 year ago

          How does it not solve their problem if they’re searching for configuration files? That would only be the case if the files do not exist in the first place, and then there’s really no difference between GNU/Linux and Windows at all if you assume that initial configuration has not occurred. What would you do?

  • @[email protected]
    link
    fedilink
    41 year ago

    To be fair sometimes configs instead of XDG_CONFIG_HOME(~/.config) are stored in XDG_DATA_HOME(~/.local/share)

  • @[email protected]
    link
    fedilink
    31 year ago

    There once was a time when configs were not in a universal place like .config. I have terrible memories of trying to fix a gnome setting gone wrong and having to search several files in four different places and just having to firebomb everything.

  • @[email protected]
    link
    fedilink
    2
    edit-2
    1 year ago

    All that depends on developer. Majority of my used Windows software is portable stored in folder that’s synced with Dropbox. All settings are then usually stored in the same folder so I can easily copy SW over to another machine without loosing any configuration / history.

    Some of those programs still do not store settings in same folder, you can often simply export settings from GUI.

      • @[email protected]
        link
        fedilink
        31 year ago

        Most configs should be in the roaming directory, since you’d usually expect them to roam between computers on a domain. The local directory is only for stuff that doesn’t make sense to sync to other computers - things like caches, configs specific to that individual PC, etc.

        Not that it matters for home users, as home users generally aren’t using Active Directory with roaming profiles.

        • @[email protected]
          link
          fedilink
          71 year ago

          Tell that to the developers. At this point I’m sure they are just rolling a dice to decide where they should put things.

      • @[email protected]
        link
        fedilink
        51 year ago

        Which contains 90% of what you search. Then just press backspace, and you reach the appdata folder.

    • @[email protected]
      link
      fedilink
      5
      edit-2
      1 year ago

      I do feel like setting environment variable on linux is not as intuitive as on windows, but after I setup my workflow, I realized I never have the need to manually set any environmental variable besides in flatseal.

      Maybe you have a specific use case for it?

    • @[email protected]
      link
      fedilink
      81 year ago

      export PATH=$PATH:/mypath1:/mypath2 in ~/.profile. Means “add :/mypath1:/mypath2 to what is already in $PATH.” If you need the entire system to be aware, set or update it in /etc/environment with PATH=...

  • @[email protected]
    link
    fedilink
    English
    51 year ago

    Linux is confusing for non IT people looking for program settings. It might be in share, local or config or hidden somewhere. On W 10 I just look under ProgramData. Maybe W11 is different. But Linux application devs need to agree on a single place. As users sometimes need to access it for plugins and resources.

    • @[email protected]
      link
      fedilink
      161 year ago

      You mean the 2 ProgramData folders? Altho who the hell puts config stuff there? Anyways, the 2 official settings apps, the 3 AppData folders and then the registry for every little thing Microsoft doesn’t want you to edit for whatever reason? And then the countless 3rd party config apps for every device aiming to make this process easier? Yea I totally don’t Google where to toggle stuff on windows as step #1, noo… And W11 just has a slightly better 2nd official settings app, so sadly not too different.

      Also who the hell puts config stuff on Linux into /local or /share? It was always in ~/.config (personal) or /etc (system wide) from my experience.

      • @[email protected]OP
        link
        fedilink
        English
        2
        edit-2
        1 year ago

        Altho who the hell puts config stuff there?

        Permanent configs that should be shared amongst users, yes. Like, for example, AnyDesk stores it’s ID and encrypted password there.

  • @[email protected]
    link
    fedilink
    106
    edit-2
    1 year ago

    This is the “appdata” folder, this is where all the application’s data goes.

    So whats the “Programs” folder then?

    This is also where the application’s data and files go.

    But I thought thats the “Programs x86” folder.

    This is also where the application’s data and files go.

    Ok whats “Program Files” then?

    This is also where the application’s data and files go.

    So my config file is in either one if those 4?

    No thats in the “Documents” folder, obviously.

    Windows program data file structure has always been the wild west.

    • @[email protected]
      link
      fedilink
      201 year ago

      Don’t forget %USERPROFILE%/AppData/Local/Programs, where some programs get installed to because the developer doesn’t want to make it a system wide installation.

      • @[email protected]
        link
        fedilink
        91 year ago

        Game save data? No, my documents.
        Application config files? Again, my documents.
        Temporary documents I don’t care about keeping? Downloads, duh.
        My actual documents? Desktop.
        My desktop? Turned icons off because it was too messy.

        Just another day using Windows…

      • @[email protected]OP
        link
        fedilink
        English
        11 year ago

        Agreed, but the number of places where to search for the config is not as big as in Windows. And there is the fact that most software is open source, so you could always check where the application saves it’s data.

    • @[email protected]
      link
      fedilink
      631 year ago

      Don’t forget about the hidden ProgramData directory at the root of the file system. Ableton Live likes to install there for some ungodly reason.

      • @[email protected]OP
        link
        fedilink
        English
        15
        edit-2
        1 year ago

        Always remember, C:\ProgramData is the eqivalent of /etc in Linux. If they don’t know where to put/hide shit, but needs admin priviliges to edit and users can only read, you put it in C:\ProgramData.

        • @[email protected]
          link
          fedilink
          13
          edit-2
          1 year ago

          I think programdata is closer to /usr/lib or maybe /var/lib.

          You almost never see config files in programdata.

          • @[email protected]OP
            link
            fedilink
            English
            1
            edit-2
            1 year ago

            Config files that are meant to be used as sane defaults for new user accounts, yes. Config files that are meant to be manually edited, no.

            Besides, there are a lot of examples of configs that are saved in ProgramData, like, let’s say, registration info for proprietery programs (of course, this info needs to be shared amongst users, so your safest bet is ProgramData). Hidden by default, makes it perfect for storing everything the program is trying to hide from the user.

      • Morphit
        link
        fedilink
        41 year ago

        Don’t forget that there’s a hidden system junction at C:\ProgramData\Application Data that points to C:\ProgramData. Because everyone loves loops in their filesystem. Of course C:\Users\All Users is also a junction to C:\ProgramData. This kills updatedb in WSL.