-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Parse ~/.config/user-dirs.dirs file #29
Comments
Also it looks like XDG_*_DIR env vars do not override the user-dirs.dirs file, checked in firefox/chromium
|
Hi @mateusz834. Thank you for your interest in the library. Reading
Yeah, that seems to be the case. I think the priority to should be: |
It even look like that env vars are completely ignored by firefox/chromium. But for backwards compatibility I think that the order should be: Maybe someone is relying on the env vars now and after the change it will suddenly use values from |
Ideally, there would be no breaking changes. I try to steer clear of them as much as possible. However, in this case, I think the default behavior going forward should be to rely on the values provided by I made a quick search through GitHub and it seems most people are using this package for base directories rather than user directories. I think very few people customize user directory environment variables anyway, especially if they're ignored by other applications. In any case, the change will be documented in the release notes. Alternatively, I could introduce an option to control whether |
Any updates on this? I recently found this library and I guess I'm one of the edge cases that need the parsing of |
You may be looking for this?
|
Released version v0.5.0 which adds support for reading |
I am testing this library using fedora and arch Linux and it seems like none of the distributions are setting the env vars for XDG User Directories.
Firefox for example reads the ~/.config/user-dirs.dirs directly.
The text was updated successfully, but these errors were encountered: