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

Cache location change option #522

Open
MystikalE opened this issue Sep 7, 2024 · 4 comments
Open

Cache location change option #522

MystikalE opened this issue Sep 7, 2024 · 4 comments

Comments

@MystikalE
Copy link

Describe the solution you'd like
I am using all of my temp files and cache files on HDD's rather than SSD or C disk in my case.

Describe alternatives you've considered
I'd like an option to change the program's cache location rather than default of %APPDATA% folder.

@SO9010
Copy link
Contributor

SO9010 commented Nov 18, 2024

Starting to have a look now.

@jacksongoode
Copy link
Collaborator

I think we could enable this pretty easy, the tricky bit might be making sure the migration works well.

@SO9010
Copy link
Contributor

SO9010 commented Nov 18, 2024

Yes I agree I had a bit of time to start trying to implement it earlier, but didn't get far so if you want to start it I'm happy to work on that!

@Self-Perfection
Copy link

FWIW psst respects $XDG_CACHE_HOME env var.

Thus it is possible to change cache location on GNU/Linux by running it like this:

XDG_CACHE_HOME=/some/dir psst-gui

Unfortunately this approach leads to duplication of fontconfig cache.

Or just symlink the cache to desired location:

mv -v ~/.cache/Psst/ /tmp/psst_cache
ln -sv /tmp/psst_cache/ ~/.cache/Psst

Windows supports symlinks as well as MacOS / Linux, but I do not know how to create them on Windows.

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

4 participants