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. |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
I think the current |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
Ignorance. |
Beta Was this translation helpful? Give feedback.
-
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
.wslconfig
may hold system-specific configurations, LocalApplicationData (%LOCALAPPDATA%\wsl\config.ini
) seems to be the most fitting choice.I would also suggest to rename
.wslconfig
toconfig.ini
or something. The dot-naming is a unix-convention and not Windows-like.Beta Was this translation helpful? Give feedback.
All reactions