To be honest, it is quite complicated now as well with all of the proprietary software

2 years ago by 0x4E4F to c/linuxmemes

Endorkend 147 points 2 years 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.

path: 0 9524833, hotness: undefined, score: 147, children: 20
pearsaltchocolatebar 49 points 2 years 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.

path: 0 9524833 9525890, hotness: undefined, score: 49, children: 17
lemmyvore 14 points 2 years 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?

path: 0 9524833 9525890 9526704, hotness: undefined, score: 14, children: 2
Opisek 5 points 2 years 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.

path: 0 9524833 9525890 9526704 9526888, hotness: undefined, score: 5, children: 0
pearsaltchocolatebar 3 points 2 years 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.

path: 0 9524833 9525890 9526704 9531783, hotness: undefined, score: 3, children: 0
exu 10 points 2 years 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.

path: 0 9524833 9525890 9526606, hotness: undefined, score: 10, children: 0
ManniSturgis 5 points 2 years 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.

path: 0 9524833 9525890 9526586, hotness: undefined, score: 5, children: 3
Demdaru 2 points 2 years 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. :<

path: 0 9524833 9525890 9526586 9526667, hotness: undefined, score: 2, children: 2
Mardukas 4 points 2 years ago

Yes but appdata subfolder is local, locallow or roaming so the poster above you is still correct.

path: 0 9524833 9525890 9526586 9526667 9526741, hotness: undefined, score: 4, children: 0
BlackRoseAmongThorns 3 points 2 years ago

Lol, appdata subfolder is already 3 different places πŸ˜‚

path: 0 9524833 9525890 9526586 9526667 9531033, hotness: undefined, score: 3, children: 0
hperrin 3 points 2 years ago

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

path: 0 9524833 9525890 9526738, hotness: undefined, score: 3, children: 6
pearsaltchocolatebar 2 points 2 years 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.

path: 0 9524833 9525890 9526738 9532546, hotness: undefined, score: 2, children: 2
hperrin 2 points 2 years 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
path: 0 9524833 9525890 9526738 9532546 9532645, hotness: undefined, score: 2, children: 1
Opisek 0 points 2 years ago

nginx at the very least, but there's way more

path: 0 9524833 9525890 9526738 9526894, hotness: undefined, score: 0, children: 2
hperrin 7 points 2 years ago

Nginx’ default config location is

/etc/nginx/
path: 0 9524833 9525890 9526738 9526894 9526946, hotness: undefined, score: 7, children: 1
shrugs 2 points 2 years 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.

path: 0 9524833 9525890 9531057, hotness: undefined, score: 2, children: 1
Rustmilian 3 points 2 years ago

To add to this, Dotfiles is a very helpful Arch Wiki page.

path: 0 9524833 9525890 9531057 9533759, hotness: undefined, score: 3, children: 0
Rustmilian 18 points 2 years ago path: 0 9524833 9525780, hotness: undefined, score: 18, children: 0
0x4E4F 0 points 2 years 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.

path: 0 9524833 9535650, hotness: undefined, score: 0, children: 0
LouNeko 102 points 2 years 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.

path: 0 9523944, hotness: undefined, score: 102, children: 17
otacon239 63 points 2 years 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.

path: 0 9523944 9523978, hotness: undefined, score: 63, children: 5
LouNeko 33 points 2 years ago

Selects separate drive for install

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

path: 0 9523944 9523978 9524068, hotness: undefined, score: 33, children: 0
0x4E4F 13 points 2 years 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.

path: 0 9523944 9523978 9524165, hotness: undefined, score: 13, children: 2
Hawke 13 points 2 years ago

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

You almost never see config files in programdata.

path: 0 9523944 9523978 9524165 9525188, hotness: undefined, score: 13, children: 1
0x4E4F 1 point 2 years 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.

path: 0 9523944 9523978 9524165 9525188 9581298, hotness: undefined, score: 1, children: 0
Morphit 4 points 2 years 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.

path: 0 9523944 9523978 9529631, hotness: undefined, score: 4, children: 0
pivot_root 19 points 2 years 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.

path: 0 9523944 9526075, hotness: undefined, score: 19, children: 0
0x4E4F 11 points 2 years ago

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

path: 0 9523944 9524139, hotness: undefined, score: 11, children: 6
pivot_root 9 points 2 years 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...

path: 0 9523944 9524139 9526106, hotness: undefined, score: 9, children: 5
Sanctus 3 points 2 years ago

I have to say I love having no desktop. Something about watching my coworkers become dependent on it is neurotic.

path: 0 9523944 9524139 9526106 9539052, hotness: undefined, score: 3, children: 4
pivot_root 2 points 2 years ago

Agreed. It's much nicer to see your wallpaper than a mess of mismatched icons that may need to be occasionally clicked.

path: 0 9523944 9524139 9526106 9539052 9540556, hotness: undefined, score: 2, children: 3
Zorsith 10 points 2 years ago

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

path: 0 9523944 9525762, hotness: undefined, score: 10, children: 0
pearsaltchocolatebar 4 points 2 years ago

And Linux isn't? There's definitely not a central location either.

path: 0 9523944 9525894, hotness: undefined, score: 4, children: 1
0x4E4F 1 point 2 years 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.

path: 0 9523944 9525894 9612843, hotness: undefined, score: 1, children: 0
SGG 69 points 2 years 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.

path: 0 9526561, hotness: undefined, score: 69, children: 21
hperrin 52 points 2 years ago

It could also be stored in the registry.

path: 0 9526561 9526714, hotness: undefined, score: 52, children: 6
SGG 39 points 2 years 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
path: 0 9526561 9526714 9527539, hotness: undefined, score: 39, children: 5
0x4E4F 1 point 2 years ago

I still have no idea why HK is in front... why is the key hot πŸ€”... and what key are we talking about...

Oh, yeah, and the different key names... Windows, Windows NT (WITH a white space...), Win...

path: 0 9526561 9526714 9527539 9533784, hotness: undefined, score: 1, children: 4
dan 3 points 2 years ago

HKEY means "handle to registry key"... Not that that helps anything.

When code opens a file, device, etc, it's given a "handle" to it, which is an internal reference so that Windows knows which file you're reading or writing, and it keeps track of where you are in the document. Similarly, HKEY_CURRENT_USER is the handle that gives you the current user part of the registry.

path: 0 9526561 9526714 9527539 9533784 9535407, hotness: undefined, score: 3, children: 3
pHr34kY 24 points 2 years 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.

path: 0 9526561 9526804, hotness: undefined, score: 24, children: 6
brotundspiele 20 points 2 years 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.

path: 0 9526561 9526804 9527286, hotness: undefined, score: 20, children: 1
poinck 10 points 2 years ago

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

path: 0 9526561 9526804 9527286 9528058, hotness: undefined, score: 10, children: 0
MonkderDritte 5 points 2 years ago

Funny thing is, most 3rd-party utility tools don't use registry but a config. Which makes them portable, btw.

path: 0 9526561 9526804 9529597, hotness: undefined, score: 5, children: 1
0x4E4F 2 points 2 years ago

Nowadays, yes. Go back 15+ years, the registry was used extesively.

My reasoning as to why, Linux was never a targeted platform for software back then, now it is. There was only GTK back then and it didn't look "nice" (appealing) at all. Plus GTK apps were huge for Windows, since you'd have to also install the GTK runtimes and all that... that just took a lot of disk space, which was expensive back then. Compared to an app that does the same, but spends only 10% of the disk space needed for GTK (you could even go a lot lower with compressors), it's obvious why GTK was never a viable option when making a GUI app.

And since Linux doesn't have a registry (or even if it did, it'll probably be completely optional to have it or not, so you can't rely on users having it installed), you'd have to just save the settings in a file, just like the rest of the FOSS applications. So, it makes no sense to have completely different codebases for the same app for Windows and everything else. In fact, most apps nowadays that aim to be cross platform just use Qt. You can compile it for watever you like, there is no need to keep separate codebases.

path: 0 9526561 9526804 9529597 9538303, hotness: undefined, score: 2, children: 0
dan 2 points 2 years ago

there is no difference between a program and an app

Yeah the naming is confusing. The reason is what you said - machine vs app.

Back on Windows 9x, some apps would store files directly in the C:\Program Files directory. This was 'fine' at the time since every app ran with full permissions. Users were at C:\Windows\Users, but users were optional so not every install used it.

Windows XP had a better NT-based permission model (not nearly as improved as Vista, but better than 9x) and allowing regular users to write to the Program Files and Windows folders wasn't really a good idea. It added two directories for settings:

  • C:\Documents and Settings\username\Application Data for user-specific data
  • C:\Documents and Settings\All Users\Application Data for non-user-specific data

Vista kept the former but moved the latter to C:\ProgramData. I can't remember why.

Windows 7 moved the user stuff to C:\Users.

path: 0 9526561 9526804 9535572, hotness: undefined, score: 2, children: 0
0x4E4F 1 point 2 years ago

ProgramData is for admin stuff and things that need to be shared between users. AppData is for personalized settings per user. For example, AnyDesk stores the unattended access password in ProgramData, as well as the ID. Sure they do get copied to AppData when AnyDesk runs on boot/login on any user, but you could also have some user specific options (like language) and they get stored in a separate file in AppData.

path: 0 9526561 9526804 9534537, hotness: undefined, score: 1, children: 0
IsoSpandy 7 points 2 years 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

path: 0 9526561 9526727, hotness: undefined, score: 7, children: 6
Laser 15 points 2 years 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/...

path: 0 9526561 9526727 9527969, hotness: undefined, score: 15, children: 0
Lath 12 points 2 years ago

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

path: 0 9526561 9526727 9527062, hotness: undefined, score: 12, children: 2
IsoSpandy 2 points 2 years ago

This is by far the best explanation

path: 0 9526561 9526727 9527062 9535459, hotness: undefined, score: 2, children: 0
0x4E4F 1 point 2 years ago

This is probably what MS thought when naming them... seriously, only Local makes some sense.

path: 0 9526561 9526727 9527062 9535587, hotness: undefined, score: 1, children: 0
MonkderDritte 1 point 2 years ago

You can rename them in the environment variables UI. Has anyone tried this, any software who has the path hardcoded?

Btw, here's the paths.

path: 0 9526561 9526727 9529621, hotness: undefined, score: 1, children: 1
0x4E4F 2 points 2 years ago

Has anyone tried this, any software who has the path hardcoded?

I know for certain that some Adobe products did have these paths hardocded (past tense, haven't tried this now), because I moved my home/user directory on D:, yet they persisted to save the settings in C:\Users.

path: 0 9526561 9526727 9529621 9534697, hotness: undefined, score: 2, children: 0
csm10495 42 points 2 years 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.

path: 0 9532529, hotness: undefined, score: 42, children: 9
atmur 7 points 2 years ago

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

path: 0 9532529 9534618, hotness: undefined, score: 7, children: 1
baseless_discourse 7 points 2 years ago

Which unfortunately also don't follow xdg-dir specification...

path: 0 9532529 9534618 9539374, hotness: undefined, score: 7, children: 0
HelloHotel 6 points 2 years ago

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

Oof

path: 0 9532529 9538048, hotness: undefined, score: 6, children: 5
jbk 5 points 2 years ago

i love apps which don't follow the XDG Base Directory spec πŸ₯°πŸ₯°

path: 0 9532529 9538048 9538072, hotness: undefined, score: 5, children: 2
HelloHotel 4 points 2 years ago

Which one is your favorate, mine is ~/freedroid/. 😝

path: 0 9532529 9538048 9538072 9538271, hotness: undefined, score: 4, children: 0
baseless_discourse 1 point 2 years ago

If you have flatpak, and the application don't need full user home access, then you can move the folder to application sandbox by setting a persistent path.

path: 0 9532529 9538048 9538072 9539353, hotness: undefined, score: 1, children: 0
0x4E4F 4 points 2 years ago

Or ~/.config/software_name.

path: 0 9532529 9538048 9538481, hotness: undefined, score: 4, children: 1
HelloHotel 4 points 2 years ago

Being the 'correct one' makes it easy to skip over... thx

path: 0 9532529 9538048 9538481 9540495, hotness: undefined, score: 4, children: 0
platypus_plumba 1 point 2 years 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.

path: 0 9532529 9721345, hotness: undefined, score: 1, children: 0
andrew_bidlaw 36 points 2 years 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.

path: 0 9526267, hotness: undefined, score: 36, children: 5
JackGreenEarth 7 points 2 years ago

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

path: 0 9526267 9527931, hotness: undefined, score: 7, children: 2
turbowafflz 6 points 2 years ago

Or if you just symlink /usr, /opt, and /home to that usb drive. You may be asking why you wouldn't just mount partitions on the usb drive to those locations. This is not a question I will be answering

path: 0 9526267 9527931 9532013, hotness: undefined, score: 6, children: 0
andrew_bidlaw 6 points 2 years ago

That's deep πŸ€”

You can make a Confucius meme quote out of it.

path: 0 9526267 9527931 9528724, hotness: undefined, score: 6, children: 0
ozymandias117 3 points 2 years ago path: 0 9526267 9530552, hotness: undefined, score: 3, children: 0
0x4E4F 1 point 2 years ago

That is good... unless you plan on sharing the app between users, then it sucks, because every user has to be an admin in order to change the config... and then, you have one user that sets it like so and so, and another that sets it completely different. And this is why separate settings for users is a good thing. Sure, have an option for a global config, and let that copy be copied to the local config as sane defaults, but not having the option to actually have separate configs in user directories is, from an IT perspective, insane.

path: 0 9526267 9614029, hotness: undefined, score: 1, children: 0
SomeBoyo 34 points 2 years ago

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

path: 0 9523924, hotness: undefined, score: 34, children: 5
pivot_root 21 points 2 years 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.

path: 0 9523924 9526125, hotness: undefined, score: 21, children: 3
eager_eagle 6 points 2 years ago

and snap

fuck snap

path: 0 9523924 9526125 9526341, hotness: undefined, score: 6, children: 2
pivot_root 2 points 2 years ago

What does snap do to your home directory? I haven't touched Ubuntu in a very long time

path: 0 9523924 9526125 9526341 9526625, hotness: undefined, score: 2, children: 1
eager_eagle 1 point 2 years ago

~/snap

Notice the lack of period. Users can't change it.

path: 0 9523924 9526125 9526341 9526625 9570332, hotness: undefined, score: 1, children: 0
Norgur 2 points 2 years ago

Or in /etc/, or in /var/ I've seen all of that, sometimes differing between distributions for maximum annoyance. So I don't think we get to act smug in I'm this particular case.

path: 0 9523924 9526379, hotness: undefined, score: 2, children: 0
rtxn 33 points 2 years 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.

path: 0 9523962, hotness: undefined, score: 33, children: 1
nightwatch_admin 3 points 2 years ago

This is the real answer.

path: 0 9523962 9525884, hotness: undefined, score: 3, children: 0
llama 23 points 2 years 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!

path: 0 9534778, hotness: undefined, score: 23, children: 1
0x4E4F 1 point 2 years ago

Probably just log in an out, but still, I fail to see how this is easier than changing some_bool_setting from =true to =false is harder... maybe because you actually know what you're changing, so that makes it scarier πŸ€”.

path: 0 9534778 9538449, hotness: undefined, score: 1, children: 0
Delta_V 22 points 2 years 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

path: 0 9530641, hotness: undefined, score: 22, children: 8
dream_weasel 3 points 2 years 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

path: 0 9530641 9530918, hotness: undefined, score: 3, children: 2
shasta 8 points 2 years ago

So simple

path: 0 9530641 9530918 9531222, hotness: undefined, score: 8, children: 1
dream_weasel 5 points 2 years 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.

path: 0 9530641 9530918 9531222 9531377, hotness: undefined, score: 5, children: 0
baseless_discourse 1 point 2 years 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.

path: 0 9530641 9534517, hotness: undefined, score: 1, children: 0
ricdeh -1 points 2 years 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.

path: 0 9530641 9530794, hotness: undefined, score: -1, children: 3
Delta_V 10 points 2 years ago

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

path: 0 9530641 9530794 9530808, hotness: undefined, score: 10, children: 2
businessfish 13 points 2 years ago

and thats the power of linux baby hell yeah

path: 0 9530641 9530794 9530808 9531326, hotness: undefined, score: 13, children: 0
ricdeh 2 points 2 years 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?

path: 0 9530641 9530794 9530808 9535890, hotness: undefined, score: 2, children: 0
XEAL 22 points 2 years ago

Mozilla products:

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

path: 0 9531198, hotness: undefined, score: 22, children: 0
tatterdemalion 19 points 2 years ago path: 0 9525391, hotness: undefined, score: 19, children: 2
Darkrai 4 points 2 years ago

πŸ¦€

path: 0 9525391 9526049, hotness: undefined, score: 4, children: 0
IsoSpandy 3 points 2 years ago

Yeah... It's an awesome crate. I use it for my app too.

path: 0 9525391 9526744, hotness: undefined, score: 3, children: 0
oo1 17 points 2 years ago

windows is simple, all configs are keys accesible via reddit

path: 0 9526116, hotness: undefined, score: 17, children: 4
pivot_root 23 points 2 years ago

[Deleted]

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

path: 0 9526116 9526155, hotness: undefined, score: 23, children: 0
sag 1 point 2 years ago

Via Reddit How?

path: 0 9526116 9527266, hotness: undefined, score: 1, children: 2
oo1 4 points 2 years ago

Sorry, that was my lame joke about the simlar sound of the windows essential tool "regedit".

My only surviving knowledge from when I used to be able to do things on windows was that it was always a bucket of shite until you "regedit" a bunch of things. These edits were arcane secrets known only to mystical internet guru's like some bloke called "Fred Vorck" and impossible to figure out by logic, reason or even through mundane hard work. I assumed that's what the lower panel in the OP is getting at.

But on reflection, I'd be sad if there's not a forum on reddit called "regedit" will all the advice on what registry keys to fix - so unintentionally it might not be the worst advice - apart from the word "simple".

edit: reddit isshit
https://www.reddit.com/r/regedit/

path: 0 9526116 9527266 9528488, hotness: undefined, score: 4, children: 1
oo1 2 points 2 years ago path: 0 9526116 9527266 9528488 9528887, hotness: undefined, score: 2, children: 0
ChaoticNeutralCzech 16 points 2 years 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.

path: 0 9528538, hotness: undefined, score: 16, children: 3
baseless_discourse 5 points 2 years 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....

path: 0 9528538 9534570, hotness: undefined, score: 5, children: 2
ChaoticNeutralCzech 2 points 2 years 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*

path: 0 9528538 9534570 9535220, hotness: undefined, score: 2, children: 1
baseless_discourse 1 point 2 years 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

path: 0 9528538 9534570 9535220 9536076, hotness: undefined, score: 1, children: 0
topinambour_rex 16 points 2 years ago

%appdata%

path: 0 9530133, hotness: undefined, score: 16, children: 5
CamWiseOwl 7 points 2 years ago

Takes you to the roaming subfolder though

path: 0 9530133 9530874, hotness: undefined, score: 7, children: 4
topinambour_rex 5 points 2 years ago

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

path: 0 9530133 9530874 9531112, hotness: undefined, score: 5, children: 0
dan 3 points 2 years 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.

path: 0 9530133 9530874 9535344, hotness: undefined, score: 3, children: 1
Huschke 7 points 2 years 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.

path: 0 9530133 9530874 9535344 9535819, hotness: undefined, score: 7, children: 0
the_artic_one 1 point 2 years ago

%localappdata%

path: 0 9530133 9530874 9538712, hotness: undefined, score: 1, children: 0
possiblylinux127 15 points 2 years ago

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

path: 0 9524460, hotness: undefined, score: 15, children: 0
BradleyUffner 14 points 2 years ago

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

path: 0 9548244, hotness: undefined, score: 14, children: 0
LouNeko 9 points 2 years ago path: 0 9524106, hotness: undefined, score: 9, children: 0
MystikIncarnate 7 points 2 years ago

Everyone knows the real power of configuration on Windows is regedit.

path: 0 9543747, hotness: undefined, score: 7, children: 7
baseless_discourse 8 points 2 years ago

Let's not pretend regedit is a good thing, it is littered with unreadable keys and has terrible UI and UX. And it requires root privileges to edit anything.

I believe one of the worst disservice Windows has done to secure computing is to make users desensitized about root privileges. Every single action you do need root privileges, install app, changing config, people would just click allow whenever UAC pops up...

This means any program can easily inject rootkit into Windows during install, without the users noticing a thing, like LoL.

path: 0 9543747 9546821, hotness: undefined, score: 8, children: 6
Crashumbc 4 points 2 years ago

As opposed to sudo command?

path: 0 9543747 9546821 9546845, hotness: undefined, score: 4, children: 5
baseless_discourse -1 points 2 years ago

You don't need to use sudo command that much on linux. I personally only need to use it to edit two config files when setting up my system, that is it.

One for pre-connection mac randomization, one to enable a kernel module I need, because my distro disable many of them by default. I am very conscious of the changes I am making. However on Windows, I have no idea what the app installers are doing.

Not to mention, most users don't even need to make these changes. Per-network randomization is likely good enough for most user, and they probably not on a security-hardened distro which disables tons of kernel modules.

For a office work and entertainments, flatpak apps are more than enough. And developers can choose to get their sdk via flatpak or podman dev containers. None of them requires sudo.

Is there a good reason for a everyday user (not a tinker nor a system admin) to use sudo in linux?

path: 0 9543747 9546821 9546845 9547326, hotness: undefined, score: -1, children: 4
Aux 4 points 2 years ago

Not sure what you're doing there, but it's pretty much every other command needs sudo here... Can't even install updates without it.

path: 0 9543747 9546821 9546845 9547326 9547495, hotness: undefined, score: 4, children: 3
Crashumbc 7 points 2 years ago

Shrug don't remember the last time I actually needed to modify a system config file on Windows...

path: 0 9538653, hotness: undefined, score: 7, children: 1
0x4E4F 2 points 2 years ago

Software actually does store it's configs in files... sometimes.

path: 0 9538653 9546400, hotness: undefined, score: 2, children: 0
Darkassassin07 6 points 2 years ago

Docker: right where you chose to put it.

path: 0 9523866, hotness: undefined, score: 6, children: 2
0x4E4F -5 points 2 years ago

It still doesn't apply to propritery software.

path: 0 9523866 9524108, hotness: undefined, score: -5, children: 1
pivot_root 9 points 2 years ago

Sure it does! Throw that festering pile of garbage into a docker container and keep it away from everything important while bind mounting the arbitrarily-placed config directory in the container to something sane on the host.

path: 0 9523866 9524108 9526173, hotness: undefined, score: 9, children: 0
Badabinski 4 points 2 years ago

For Linux applications that respect XDG? Sure. There are plenty that don't because they either predate that specification, or they just don't care. Linux filesystems are generally much faster at executing reads on many small files, meaning fast search tools like ripgrep and fd make it so I don't really have to care. They'll run through my whole $HOME in 5 seconds flat. There's also stuff like locate, although I don't like maintaining an index. SSDs are so damn fast that I can just rg --hidden --glob '*.toml' 'the_setting_i_want_to_change' ~/ whenever I want.

path: 0 9551325, hotness: undefined, score: 4, children: 0
uis 4 points 2 years ago

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

path: 0 9547711, hotness: undefined, score: 4, children: 0
Nonononoki 3 points 2 years ago

To this day, I still don't know how to set a path variable permanently in any Linux distro

path: 0 9533829, hotness: undefined, score: 3, children: 2
excitingburp 8 points 2 years 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=...

path: 0 9533829 9535788, hotness: undefined, score: 8, children: 0
baseless_discourse 5 points 2 years 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?

path: 0 9533829 9534555, hotness: undefined, score: 5, children: 0
Pacmanlives 3 points 2 years ago

/etc or /usr/local/etc and done

path: 0 9538360, hotness: undefined, score: 3, children: 1
Itdidnttrickledown 2 points 2 years ago

For user space /home/$user/.config/application_name/config.file_name

path: 0 9538360 9538718, hotness: undefined, score: 2, children: 0
NostraDavid 3 points 2 years 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.

path: 0 9533370, hotness: undefined, score: 3, children: 1
0x4E4F 2 points 2 years 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.

path: 0 9533370 9538543, hotness: undefined, score: 2, children: 0
OfficerBribe 2 points 2 years 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.

path: 0 9528781, hotness: undefined, score: 2, children: 0
psion1369 2 points 2 years 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.

path: 0 9531672, hotness: undefined, score: 2, children: 1
dan 4 points 2 years ago

Still the case today... Not every Linux app complies with XDG.

path: 0 9531672 9535358, hotness: undefined, score: 4, children: 0
ColeSloth 1 point 2 years ago

I use an all encompassing indexing app on windows called "Everything" and it let's me find....everything, since it indexes it all, it also finds it instantly. if you have to use windows, I suggest getting it. It's no cost.

path: 0 9532481, hotness: undefined, score: 1, children: 0
ian -5 points 2 years 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.

path: 0 9527241, hotness: undefined, score: -5, children: 6
LANIK2000 16 points 2 years 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.

path: 0 9527241 9527371, hotness: undefined, score: 16, children: 2
0x4E4F 2 points 2 years 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.

path: 0 9527241 9527371 9613817, hotness: undefined, score: 2, children: 1
LANIK2000 1 point 2 years ago

That horrifies me...

path: 0 9527241 9527371 9613817 9615720, hotness: undefined, score: 1, children: 0
Hiro8811 9 points 2 years ago

I mostly saw them in ~/.config or /etc

path: 0 9527241 9527337, hotness: undefined, score: 9, children: 1
0x4E4F 3 points 2 years ago

~/.config for local, /etc for global.

path: 0 9527241 9527337 9613855, hotness: undefined, score: 3, children: 0
baseless_discourse 3 points 2 years ago path: 0 9527241 9534501, hotness: undefined, score: 3, children: 0
linuxmemes
linuxmemes

@lemmy.world

login for more options
31852
2261
6848

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

go to feed...