Skip to content

Comments

Use XDG_CONFIG_HOME to find the lem configuration directory.#960

Merged
cxxxr merged 1 commit intolem-project:mainfrom
timmydo:timmydo/xdgconfig
Aug 18, 2023
Merged

Use XDG_CONFIG_HOME to find the lem configuration directory.#960
cxxxr merged 1 commit intolem-project:mainfrom
timmydo:timmydo/xdgconfig

Conversation

@timmydo
Copy link
Contributor

@timmydo timmydo commented Aug 17, 2023

src/config.lisp Outdated
(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

@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