logoalt Hacker News

PunchyHamstertoday at 11:14 AM2 repliesview on HN

Well, they are supposed to be all in .config, problem is many app developers think they are special little boys that deserve its own directory


Replies

delta_p_delta_xtoday at 11:38 AM

%LOCALAPPDATA% on Windows. Or better still, use GetAppContainerFolderPath or SHGetKnownFolderPath with FOLDERID_LocalAppData.

show 1 reply
delusionaltoday at 11:48 AM

It all sounds so easy, until you learn about the XDG Base Directory Specification[1]. You're actually supposed to do a whole song and dance around a hierarchical set of environment variables, associated defaults, and resolution orders.

Interfacing with people is never easy.

[1]: https://specifications.freedesktop.org/basedir/latest/

show 1 reply