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

Use XDG_CONFIG_HOME to find the lem configuration directory. #960

Merged
merged 1 commit into from
Aug 18, 2023

Conversation

timmydo
Copy link
Contributor

@timmydo timmydo commented Aug 17, 2023

src/config.lisp Outdated
@@ -2,7 +2,7 @@

(defun lem-home ()
(or (uiop:getenv "LEM_HOME")
(merge-pathnames ".lem/" (user-homedir-pathname))))
(uiop:xdg-config-home "lem/")))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should fall back to using ~/.lem so that current users aren't caught off-guard, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed the logic to take .lem if it exists first and fallback to xdg-config + 'lem/' if that doesn't already exist. Thoughts?

@Sasanidas
Copy link
Member

Maybe we can support both? Like in GNU Emacs https://www.gnu.org/software/emacs/manual/html_node/emacs/Find-Init.html

@timmydo timmydo force-pushed the timmydo/xdgconfig branch from cd13779 to 1776c27 Compare August 18, 2023 04:01
@timmydo timmydo force-pushed the timmydo/xdgconfig branch from 1776c27 to c94093a Compare August 18, 2023 04:03
@cxxxr cxxxr merged commit 0f3c0a5 into lem-project:main Aug 18, 2023
@cxxxr
Copy link
Member

cxxxr commented Aug 18, 2023

Thank you!

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

Successfully merging this pull request may close these issues.

4 participants