563
top 50 comments
sorted by: hot top controversial new old
[-] Endorkend@kbin.social 147 points 7 months ago* (last edited 7 months 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.

[-] pearsaltchocolatebar@discuss.online 49 points 7 months 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.

[-] lemmyvore@feddit.nl 14 points 7 months 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?

load more comments (2 replies)
[-] exu@feditown.com 10 points 7 months 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.

load more comments (13 replies)
[-] Rustmilian@lemmy.world 18 points 7 months ago* (last edited 7 months ago)

XDG Base Directory & XDG User Directories will help you immensely. At least, for the programs that follow the XDG specs. Also, check out XDG Ninja.

load more comments (1 replies)
[-] LouNeko@lemmy.world 102 points 7 months ago* (last edited 7 months 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.

[-] otacon239@feddit.de 63 points 7 months 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.

[-] LouNeko@lemmy.world 33 points 7 months ago

Selects separate drive for install

Adobe: "Imma, pretend I didn't see that"

[-] 0x4E4F@sh.itjust.works 13 points 7 months ago* (last edited 7 months 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.

[-] Hawke@lemmy.world 13 points 7 months ago* (last edited 7 months ago)

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

You almost never see config files in programdata.

load more comments (1 replies)
load more comments (1 replies)
[-] pivot_root@lemmy.world 19 points 7 months 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.

[-] 0x4E4F@sh.itjust.works 11 points 7 months ago

Yeah, the Documents config file/dir pisses me off the most as well!

[-] pivot_root@lemmy.world 9 points 7 months 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...

load more comments (5 replies)
[-] Zorsith@lemmy.blahaj.zone 10 points 7 months ago

System wide config for an application? Lets put that under C:\users*?????

load more comments (2 replies)
[-] SGG@lemmy.world 69 points 7 months ago

Don't forget that appdata nowadays has 3 sub folders, local, locallow, and roaming.

Also there's C:\programdata

Also some programs just store it in the user folder, the documents folder, or games/ my games folder if they are a game.

[-] hperrin@lemmy.world 52 points 7 months ago

It could also be stored in the registry.

[-] SGG@lemmy.world 39 points 7 months ago

Oooh the registry is even more fun.

  • HKLM, HKCU? These are statements dreamt up by the utterly deranged
  • Store it in software, make your own root folder
  • Also for 32 bit programs there wow6432node
  • There's also the policies section, but this kind of makes sense to have it split off
  • Also make sure to follow the apple methodology of having multiple different key names like Apple, Apple inc., etc
load more comments (5 replies)
[-] pHr34kY@lemmy.world 24 points 7 months ago* (last edited 7 months ago)

And half the time you'll find it in the registry too. Linux has proven quite well that an OS doesn't need a registry.

Oh, and what's with ProgramData and AppData being two completely different things. I understand the difference between the two directories, but there is no difference between a program and an app. Everywhere else it's Machine/User.

[-] brotundspiele@feddit.de 20 points 7 months ago* (last edited 7 months ago)

Linux has proven quite well that an OS doesn't need a registry.

Gnomes dconf would like to have a word with you. It's really interesting how the Gnome people seem to get rid of every useful feature as it might confuse the user or be complex, but on the other hand add this registry-like anti-feature to make the system just as unmanageable as Windows.

[-] poinck@lemm.ee 10 points 7 months ago

What you can find in dconf is well organized compared to what is inside of the regedit hell.

load more comments (4 replies)
[-] IsoSpandy@lemm.ee 7 points 7 months ago

What the fuck is local low? I don't understand. Local is Billy G's jizz... I get that... And Roaming is for poor plebs. But why LocalLow? Is it like cache? But I have seens games saving their save files there. I don't understand

[-] Laser@feddit.de 15 points 7 months ago

The folders actually do make sense.

Roaming: this data can be moved between machines in a domain if you have a roaming profile. E.g. go to another workstation and your browser configuration is the same? Means it's in Roaming.

Local: this data will not be synchronized between machines when you roam. This could be your browser's cache.

LocalLow: like local, but for applications that are "low integrity", like Internet Explorer. These folders have special properties. https://helgeklein.com/blog/internet-explorer-in-protected-mode-how-the-low-integrity-environment-gets-created/

[-] Lath@kbin.earth 12 points 7 months ago

Local is for regular apps, LocalLow is for depressed apps and Roaming is for high apps looking for munchies.

load more comments (2 replies)
load more comments (2 replies)
[-] csm10495@sh.itjust.works 42 points 7 months 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.

[-] atmur@lemmy.world 7 points 7 months ago

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

load more comments (1 replies)
load more comments (7 replies)
[-] andrew_bidlaw@sh.itjust.works 36 points 7 months ago

I feel mildly aroused when I see a program or a game that collects everything in it's folder and can be used from a USB drive. Some paid, industrial grade software leaves so much traces and depends on so much different hidden files and keys it's making me sick.

[-] JackGreenEarth@lemm.ee 7 points 7 months ago

Any game can be used from a USB drive if that USB drive is running a live OS.

load more comments (2 replies)
load more comments (2 replies)
[-] SomeBoyo@feddit.de 34 points 7 months ago

Or in /home/username/.applicationname/ if they want to be annoying.

[-] pivot_root@lemmy.world 21 points 7 months ago

This should be considered a war crime, and doubly so when they don't even have the decency to prefix it with a dot (looking at you Golang). It's my home folder, not a dumping grounds for random trash.

load more comments (3 replies)
load more comments (1 replies)
[-] rtxn@lemmy.world 33 points 7 months ago* (last edited 7 months ago)

The setting you're looking for could be in %appdata% It could be in %localappdata% It could be in C:\ProgramData. It could be in the registry. It could be in HKLM. It could be in HKCU. It could be in any of the userdirs. It could be in the application's directory.

HA! Joke's on you, it was an envvar all along!

True story.

load more comments (1 replies)
[-] llama@midwest.social 23 points 7 months ago

Oh that setting is super easy to change, just go to run, type in regedit, expand HKEY_LOCAL_MACHINE then just scroll until you find CLSID-73838-abf83-c758d57-87a90ba, set the value to zero and reboot!

load more comments (1 replies)
[-] XEAL@lemm.ee 22 points 7 months ago

Mozilla products:

"What is this .config folder you talk about?"

[-] Delta_V@lemmy.world 22 points 7 months 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

load more comments (8 replies)
[-] tatterdemalion@programming.dev 19 points 7 months ago

Despite what developers do at the end of the day, there are conventions for application directories on every OS.

I just use the directories crate in Rust.

https://github.com/dirs-dev/directories-rs

load more comments (2 replies)
[-] oo1@kbin.social 17 points 7 months ago

windows is simple, all configs are keys accesible via reddit

[-] pivot_root@lemmy.world 23 points 7 months ago

[Deleted]

^half^ ^the^ ^time^ ^its^ ^been^ ^deleted^ ^because^ ^Spez^ ^is^ ^a^ ^greedy^ ^pigboy^

load more comments (3 replies)
[-] topinambour_rex@lemmy.world 16 points 7 months ago
load more comments (5 replies)
[-] ChaoticNeutralCzech@feddit.de 16 points 7 months ago* (last edited 7 months 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.

load more comments (3 replies)
[-] possiblylinux127@lemmy.zip 15 points 7 months ago

They don't have config files in Windows. Apps just throw things everywhere without rhyme of reason

[-] BradleyUffner@lemmy.world 13 points 7 months ago

Tell that to the file I just dropped in to ~/.steam/debian-installation/steamapps/compatdata/1086940/pfx

[-] LouNeko@lemmy.world 9 points 7 months ago
load more comments
view more: next ›
this post was submitted on 20 Apr 2024
563 points (90.9% liked)

linuxmemes

21281 readers
50 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 1 year ago
    MODERATORS