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

xdg compliance #41

Open
ZerdoX-x opened this issue Feb 15, 2025 · 2 comments
Open

xdg compliance #41

ZerdoX-x opened this issue Feb 15, 2025 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@ZerdoX-x
Copy link

Describe the bug
parllama uses ${HOME}/.parllama as a storage

Expected behavior
parllama should store, for example, .parllama/cache/ in ${XDG_CACHE_HOME}/parllama/ which should default to ~/.cache/parllama/ if this env variable is missing. settings.json is a config file. and so on

Screenshots

Image

Desktop (please complete the following information):

  • OS: Linux & more

Additional context
ollama's: ollama/ollama#228

https://specifications.freedesktop.org/basedir-spec/latest/
https://wiki.archlinux.org/title/XDG_Base_Directory
https://wiki.gentoo.org/wiki/XDG/Base_Directories

there is a way you can implement it without breaking anything. could not find any public references implementing migration, attach later if needed

@ZerdoX-x
Copy link
Author

i've not checked parllama file locations on other OSes, consider checking them too. apple specs have it's own locations to store things.

@paulrobello paulrobello self-assigned this Feb 16, 2025
@paulrobello paulrobello added the enhancement New feature or request label Feb 16, 2025
@paulrobello
Copy link
Owner

Parllama uses ${HOME}/.parllama on all OSs.
I will look into OS specific specs and migrate existing locations to the correct locations.
This will be in the next Parllama release, which I hope to have out in the next couple of weeks.

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

No branches or pull requests

2 participants