XDG folders¶
Get XDG user or site folders
Some platforms require app author name. Linux doesn’t.
Take the (head) author name from the target package’s meta data and then slugify it. If that gives a wrong result, on a per author basis, would need a way to specify the correct author name
Since the target platform is POSIX, not losing sleep over this issue
Module private variables
- logging_strict.util.xdg_folder.__all__: tuple[str, str, str] = ("DestFolderSite", "DestFolderUser", "_get_path_config")¶
Module exports
Module objects
- class logging_strict.util.xdg_folder.DestFolderSite(appname, author_no_period=True, author_no_space=True, author_no_underscore=True, version=None, multipath=False)¶
XDG Site folders
- Variables:
appname (str) – Package name
author_no_period (str) – Default
True.Trueif should remove period from author name otherwiseFalseauthor_no_space (str) – Default
True.Trueif should remove whitespace from author name otherwiseFalseauthor_no_underscore (str) – Default
True.Trueif should remove underscore from author name otherwiseFalseversion (str | None) – Default
None. Possible to have version specific author information. Can specific versionmultipath (bool | None) – Default
False. Could retrieve all possible folders.Truefor multipath.Falsefor first entry in multipath
- class logging_strict.util.xdg_folder.DestFolderUser(appname: str, author_no_period=True, author_no_space=True, author_no_underscore=True, version=None, roaming=False, opinion=True)¶
XDG User folders
- Variables:
appname (str) – Package name
author_no_period (str) – Default
True.Trueif should remove period from author name otherwiseFalseauthor_no_space (str) – Default
True.Trueif should remove whitespace from author name otherwiseFalseauthor_no_underscore (str) – Default
True.Trueif should remove underscore from author name otherwiseFalseversion (str | None) – Default
None. Possible to have version specific author information. Can specific versionroaming (bool | None) – Default
False. Only applicable to Windowsopinion (bool | None) – Default
True. ??