Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Addresses #228. This is my first time writing go, please feel free to correct any bad code. *
This change defaults to using the XDG Base Directory Specification for the history file and private key files which are currently generated in the
.ollama
directory.It will still use
.ollama
if it exists (hence shouldn't break current setups), but allows use of$XDG_DATA_HOME/ollama
instead.I am unsure if/where these should be moved to, do they also belong in XDG_DATA_HOME?
ollama/app/store/store_linux.go
Line 15 in 4ec7445
ollama/macapp/src/index.ts
Line 27 in 4ec7445
I'm also unsure if I need to add/change anything here, I'm assuming my changes don't even affect windows, so no?
ollama/app/ollama.iss
Line 122 in 4ec7445
I simply searched the repo for ".ollama" to find stuff to change, please let me know if I missed anything.
I have only tested and designed this to work on Linux, let me know if this doesn't work for macOS.
*A styleguide and/or contributing document would be great #2231