3 ms·
Just like a UNIX file system ends up filled with .dotfiles garbage I didn't ask about to have around. And better know where they come from, as there is no clea
by pjmlp 2y ago
Just like a UNIX file system ends up filled with .dotfiles garbage I didn't ask about to have around.
And better know where they come from, as there is no clean way to safely remove them.
- nicce 2y ago> Just like a UNIX file system ends up filled with .dotfiles garbage I didn't ask about to have around. Which one is better - a configuration file in some place or default configuration buried inside binary blob?
- pjmlp 2y agoHardly makes a difference when the outcome is the same. Also no one edits text files by hand, we use tools for that, tools that manipulate what is anyway a stream of bytes, whose meaning is given by whatever tool is used to manipulate such stream of bytes.
- ddulaney 2y agoDefault configuration IMO. I actually really like the way git does it, where it reads each of these in order, last one wins. - Default configuration compiled in - Global configuration - Per-user configuration - Per-project configuration You can opt-in to however much configuration complexity you need. Just cloning the occasional thing? Don't bother configuring, the global defaults are probably good enough. Simple commits and pushes? Make a user-level dotfile in your $XDG_CONFIG_HOME to set some basic info. Complex per-project aliases? If you want that, go ahead and opt in. Contrast that with programs that just dump their whole default config into my home dir on first run. Just filling up with nonsense, often no way to tell what I changed or didn’t.
- p_ing 2y agoJust get a registry! Problem solved ;) Apps are terrible at this on Windows. Sometimes it's in %USERPROFILE%, sometimes in one of the three %appdata% folders, then My Docs, other times in %ProgramData%, and even worse, %PUBLIC%. There's a registry for a reason, but even Microsoft doesn't use it for x-platform apps.
- pjmlp 2y agoLike GNOME? There are rules when to use what, but usually folks rather code away instead of reading documentation.
- keyringlight 2y agoThe only way I can see it getting solved is the OS sandboxing everything behind the scenes, redirecting everything the application spews in random locations to The One True Profile Folder per application. Even then it wouldn't be without challenges, off the top of my head some method if you actually wanted an application to get out of its sandbox and look at the real documents folder, another method for App1 to look at files in App2's sandbox (and detecting when this is desired), or what to do if an application is able to change how it identifies itself to the OS (new versions?).
- pjmlp 2y agoHence UWP, with its rampdown, the newly introduced Win32 app sandbox model for .msix distribution.
- the8472 2y agomaybe if microsoft had a registryfs...
- p_ing 2y agoYou can browse/manipulate the registry with PowerShell. There's an OOTB provider for it. cd HKCU: https://learn.microsoft.com/powershell/scripting/samples/working-with-registry-entries https://learn.microsoft.com/powershell/scripting/samples/wor...
- jandrese 2y agoDotfiles are going out of fashion as most stuff ends up in .config now.
- int_19h 2y agoThe equivalent of .config on Windows is ~/AppData. The problem, as usual, is that apps ignore it and do whatever they want. Such as e.g. using dotfiles directly in ~ instead.
- adastra22 2y agoThat's a dotfile...
- paride5745 2y agoWhat is meant is that instead of ~/.app/config, you are getting now ~/.config/app/config. It’s much cleaner and it comes with a more logical and useful split of config and cache stuff, e.g. you can just skip .cache when rsync-ing to a remote storage instead of having a long list of per-app escapes…
- queuebert 2y agoNot really. Now when I want to uninstall something, I have to look in multiple places for its artifacts, rather than just nuking .<appname>. And there is no universal pattern of use. It's even worse than /usr vs /opt.
- ablob 2y agoThis is an issue that really can't be fixed imo. If use the scheme "app/storage" then migration/deletion of singular apps is easy, but if you want to touch just a part of every program (e.g. delete the cache) then its filled with the same tedium you were initially complaining about with regards to uninstalling. On the other hand, the scheme "storage/app" allows you to "nuke" the cache for every installed program without touching the config at all (while lessening the ease of complete removal). As I don't usually remove programs (or install new ones, for that matter) the scheme that works best for me and many others is "storage/app". In an ideal world a hybrid scheme might be possible, but as it stands now it is not an option and one way has to be chosen over the other.
- hulitu 2y ago> And better know where they come from, as there is no clean way to safely remove them. Add a cron job to delete them ? /s
- queuebert 2y agoYou mean you don't need .local, .config, .cache, .fonts, and .<appname> x <# of apps>? /s Makes me want to run off a read-only DVD.