-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
A Zig SHGetKnownFolderPath implementation in the standard library #18098
Copy link
Copy link
Open
Labels
contributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.standard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.
Milestone
Metadata
Metadata
Assignees
Labels
contributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.standard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.
Type
Fields
Give feedbackNo fields configured for issues without a type.
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, theSHGetKnownFolderPathcall withinstd.fs.getAppDataDirwas replaced with aLOCALAPPDATAenvironment variable lookup. This has the potential to regressgetAppDataDirbehavior for certain setups and it's not foolproof to rely onLOCALAPPDATAbeing set.Instead,
SHGetKnownFolderPathshould 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):