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

Include information on XDG folders #3

Open
qwitwa opened this issue May 22, 2013 · 3 comments
Open

Include information on XDG folders #3

qwitwa opened this issue May 22, 2013 · 3 comments

Comments

@qwitwa
Copy link

qwitwa commented May 22, 2013

Including information/explanation about folders from the XDG specification would be helpful.

The complication is that since those folders are defined by environment variables, the current approach of testing the directory by regular expression on a preset list of directories isn't going to work.

If the target audience of this program is mainly new users, this could probably be ignored, and help strings for the defaults such as "~/.local/share" could be hard-coded into the program.

@jrenner
Copy link
Owner

jrenner commented May 23, 2013

Seems worth doing, but not urgent

@jrenner
Copy link
Owner

jrenner commented May 24, 2013

latest commit moved from regex to map based directory info.
now it will be simple to get the XDG environment variables, and add their info to the map.

@qwitwa
Copy link
Author

qwitwa commented May 24, 2013

Nice. I might go learn Go and do it myself. If this is still open by the time I get round to that I'll send you a pull request.

I cloned the project in python for fun here, and got environment variables working by splitting the helpstring into lines and checking the first character of each line to figure out what the line means, then using the python standard library's os.path to expand variables.

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

No branches or pull requests

2 participants