-
Notifications
You must be signed in to change notification settings - Fork 48
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 support for ~/.local/bin
#124
Conversation
Thank you for the PR!
|
Thanks for your reply @Rufflewind
Similar argument can be made regarding other Windows defaults for XDG directories. The semantics do not match precisely as the XDG standard wasn't intended to have Windows alternatives. My reasoning for choosing a default for If aforementioned reasoning is not acceptable then I think that for those XDG directories that do not fit the pattern of For edge cases like getXdgRuntimeDir
:: FilePath
-- ^ Default value of runtime directory if @XDG_RUNTIME_DIR@ is not defined.
-> FilePath
-> IO FilePath Similar approach can be taken for
I was looking at tests and hadn't seen anything appropriate that can be tested. Only thing that came to my mind is to test the definition, which is not a good unit test. Any suggestions on what should be tested?
That I can definitely do once we agree on an approach. |
I am fine with just providing a separate function:
I don't think |
Is there still interest in continuing this PR? |
Thanks for the PR. Closing due to inactivity. Let me know if you wish to reopen the PR. |
Proposed implementation for
XdgBin
based on the discussion in #119.What makes
~/.local/bin
different from others is that it doesn't have an environment variable associated with it. Not everyone is happy with that gitlab.freedesktop.org/xdg/xdg-specs/-/issues/14 and it is possible that the situation will change in the future. Notable example isghcup
, which usesXDG_BIN_HOME
.I've looked into tests that are available for XDG stuff and they don't seem to need any changes. Please, let me know if that's not true.