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
XDG directories #33
Comments
Can you please explain a bit what exact feature do you want, and what for? |
Default to XDG directories. People don't like yet another folder spammed to their home folder and expect programs to follow the damn standards as they make for a more predictable OS. It's part of the |
I can deal with What is a sane default for Any suggestions? |
I think this refers to some session manager (systemd, gnome-session etc.) magic. This is definitely not the task of regular applications. |
Excellent. I'll work on this when I get some time. |
There's a nice and simple implementation here if you want a reference: http://projects.haxx.es/p/genetic-invasion/source/tree/master/src/game/Utilities.cc#L137 |
To determine where the configuration files are located, the logic is as follows: - CMUS_HOME takes priority, as before. - ~/.cmus is used if it already exists, to maintain backward compatibility. - New users default to XDG_CONFIG_HOME/cmus, or ~/.config/cmus if XDG_CONFIG_HOME is unset. To determine where the socket is located is a bit more simple: - XDG_RUNTIME_DIR/cmus-socket if XDG_RUNTIME_DIR is set. - Otherwise, name it 'socket' in the config directory, as before.
The only thing I was really questioning was if it was okay or not to add |
Adding a couple of object files is not a problem, of course. However, maybe it makes sense to split BTW, if we are already discussing code, maybe it is time for a pull request? |
It would be absolutely sick if
cmus
supported XDG directories under Linux. As for migration worries, per-distribution package maintainers can sort them out.The text was updated successfully, but these errors were encountered: