Use recommended storage locations for app and user data #9191
Replies: 6 comments 1 reply
Renaming or moving the .wslconfig file would break many existing use cases. |
|
I don't feel very strongly on this one myself, although I can understand the desire to get things of the Windows It's just, with
Not really. Usually when an application changes the default location of a config file, they still maintain backwards compatibility by looking in the "old location" as a fallback. An example would be
Nooooo. Not I'm actually okay with
I don't mind that. Just no deeper in the file structure please! But what do I care? 😀-As long the |
|
I think the current |
You are taking this too literal. If application behaviour is controlled by a config file, it should live within a app-specific folder in
How a better name would look like would definitely be a topic of discussion. I will argue in favour of every name that follows Windows convention in the form of |
|
Why can't Microsoft follow the decades old conventions for its own OS? I would like to not have any additional files in my profile folder please. And the dot naming convention does not really make sense as dot-files are not hidden automatically by Explorer or any other tools, unlike on Linux. |
Ignorance. |
Uh oh!
There was an error while loading. Please reload this page.
WSL is putting application data directly in the user profile at
$env:userprofile\.wslconfig. This violates Microsoft recommendations for Windows operating systems and should be moved to the recommended locations.The application and user data should be moved to storage locations recommended by Microsoft. A selection of recommended storage locations are
Source and details about recommended storage locations:
https://docs.microsoft.com/en-us/dotnet/api/system.environment.specialfolder?view=net-6.0
Since
.wslconfigmay hold system-specific configurations, LocalApplicationData (%LOCALAPPDATA%\wsl\config.ini) seems to be the most fitting choice.I would also suggest to rename
.wslconfigtoconfig.inior something. The dot-naming is a unix-convention and not Windows-like.All reactions