Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add os.getDataDir for platform independent XDG_DATA_HOME #744

Open
timotheecour opened this issue May 29, 2021 · 3 comments
Open

add os.getDataDir for platform independent XDG_DATA_HOME #744

timotheecour opened this issue May 29, 2021 · 3 comments

Comments

@timotheecour
Copy link
Owner

timotheecour commented May 29, 2021

(analog to getTempDir and getConfigDir in std/os)

refs nim-lang#18119 (comment)

links

@juancarlospaco
Copy link
Collaborator

Would it be better to make something like
func getXdg*(items = {XdgHome, XdgData, XdgTemp})

Because theres multiple paths in XDG_*; Then the pre-existent proc can be a
template getHome*() = getXdg({XdgHome}).

@timotheecour
Copy link
Owner Author

timotheecour commented May 31, 2021

but XDG doesn't translate to windows; that's why we're going for these instead:
getHomeDir
getTempDir
getConfigDir
getCacheDir
getDataDir (no PR yet for this)

@juancarlospaco
Copy link
Collaborator

Are you sure ?. 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants