-
Notifications
You must be signed in to change notification settings - Fork 327
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
Please support XDG base directory specification #994
Comments
Looks like a dup of this bug, so I'll close this. |
Hm, on the other hand that's for the library, so may be it needs a separate one. So let's keep it open. For me the problem occurs when using gwenview which relies on libgphoto2. |
This is definitely an issue for the libgphoto2 library. |
Trying to develop a way to achieve this. The libgphoto2 code could, instead of just using
This would ensure migration to the new location. What should happen if someone uses an older version of libgphoto2 which looks in To solve that, the new This strategy should obviously apply on Linux, BSD, ... Should it also apply on MacOS? Possibly. And on Windows? Probably not. Right? |
Not exactly. If If it's not defined use Plus before creating (if selected location doesn't exist) use that check for fallback you mentioned if you want to keep some backwards compatibility for a while. I don't think you need to overcomplicate things with renaming and etc. Just support fallback for a while and then remove legacy path in the code completely (after a year or however long you decide). It doesn't need to apply to macos and Windows, they don't follow XDG specification. |
Currently on Linux libgphoto creates
$HOME/.gphoto
directory when used. Please use XDG base directory specification to avoid cluttering$HOME
.The text was updated successfully, but these errors were encountered: