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

Follow XDG Base Directory spec #610

Open
ribosomerocker opened this issue Apr 9, 2021 · 10 comments
Open

Follow XDG Base Directory spec #610

ribosomerocker opened this issue Apr 9, 2021 · 10 comments

Comments

@ribosomerocker
Copy link

Hello, I've recently started using emacs, getting into the ecosystem, and also learning common lisp. I've been recommended this plugin, and it seems to work really well, my only problem with this is the fact that there is - seemingly - both, no way to customise where the ~/.slime directory should be put in, preferably somewhere that complies with the XDG Base Directory spec. What I also dislike, but on a lesser level, is the fact that it doesn't do this by default.

@luismbo
Copy link
Member

luismbo commented Apr 9, 2021

Where should it go?

@ribosomerocker
Copy link
Author

It depends on what's being saved in the ~/.slime directory, to me, it looks like data, rather than configuration, so I suggest $XDG_DATA_HOME, and if that environment variable doesn't exist, just put it inside ~/.local/share, as that is what it defaults to

(Though if it's not data, the folder would be different, where it'd be $XDG_CONFIG_HOME, which defaults to ~/.config)

@luismbo
Copy link
Member

luismbo commented Apr 9, 2021

ACK, thanks. There are also some caches there.

@ribosomerocker
Copy link
Author

I'm sorry for the late response! XDG has $XDG_CACHE_HOME, which defaults to ~/.cache/

I suggest you try to load the XDG environment variables first, and if they are empty, just defaulting to the defaults of the environment variables, and I also suggest that you make seperate slime directories to put in them, e.g. $XDG_CACHE_HOME/slime/ would only have cache for slime, and I also XDG_DATA_HOME/slime for config files, etc.
Thank you for taking your time to look at this! I really appreciate it!

@ribosomerocker
Copy link
Author

If you'd wish, I can create a pull-request for it?

@luismbo
Copy link
Member

luismbo commented Apr 10, 2021 via email

@11xx
Copy link

11xx commented Jan 2, 2022

Hi, any news on this?

@PRESFIL
Copy link

PRESFIL commented Dec 17, 2022

Any updates on this?

@ron-at-swgy
Copy link

Writing to ~/.slime makes it impossible to port any lisp project using slime (or swank) to OpenBSD. The build system runs in a chroot and expects all build artifacts to go in a particular place.

While I think the requestor's suggestion of XDG_CACHE_HOME and XDG_DATA_HOME are excellent, I would be happy with any means to specify where .slime should be located.

@ron-at-swgy
Copy link

After looking at the way the system is defined, there is no way to load a system depending on swank without attempting to create a "~/.slime" directory. Even if one sets the swank-loader:*fasl-directory* variable, it will not take effect until after the system is loaded (which attempts to create the default-fasl-dir)

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

No branches or pull requests

5 participants