3 ms·
Just 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,
by p_ing 2y ago
Just 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...
- the8472 2y agoI was replying to the portable application part. If the registry were accessible through the filesystem interface that might be easier to deal with through standard APIs. Like a piece of python has no problem reading from procfs or sysfs on linux.
- deleted 2y ago[deleted]
- int_19h 2y agoThe registry hasn't been the recommended place for Win32 app settings for well over two decades now. The guidance is to only use it for system stuff that's already these, and have config files in the standard designated locations under %AppData% (depending on whether they are machine-specific or user-specific; ideally, apps are supposed to support both).
- pjmlp 2y agoAlso since Windows 8 it is sandboxed for Store apps actually.