A Zig SHGetKnownFolderPath
implementation in the standard library
#18098
Labels
contributor friendly
This issue is limited in scope and/or knowledge of Zig internals.
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
standard library
This issue involves writing Zig code for the standard library.
Milestone
EDIT: This is currently being worked on here: https://github.com/squeek502/get-known-folder-path
Follow up from #18091
To avoid a dependency on
shell32.dll
, theSHGetKnownFolderPath
call withinstd.fs.getAppDataDir
was replaced with aLOCALAPPDATA
environment variable lookup. This has the potential to regressgetAppDataDir
behavior for certain setups and it's not foolproof to rely onLOCALAPPDATA
being set.Instead,
SHGetKnownFolderPath
should be reimplemented in Zig without introducing a dependency onshell32
. For this,wine
's implementation would likely be a good reference.Standalone version of the previous implementation using
SHGetKnownFolderPath
(this is ultimately the behavior that the Zig reimplementation is looking to match, but it shouldn't beFOLDERID_LocalAppData
-specific):The text was updated successfully, but these errors were encountered: