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

Psst stores cached songs twice in two different directories #563

Open
Self-Perfection opened this issue Dec 5, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@Self-Perfection
Copy link

Describe the bug
I see that psst creates lots of /tmp/.tmpXXXXXX files. Some of them are about 5-20 MiB and identical to some files in ~/.cache/Psst/audio/. Others are about 400 KiB. Probably albums covers cache. That I have not checked

To Reproduce
Use psst under GNU/Linux?
Probably to trigger this bug /tmp and ~/.cache has to be on different volumes.

Expected behavior
Cache files should be created in the same directory where they will be eventually stored.

Environment

  • OS: Ubuntu Linux 22.04
  • Version: 69314f9, built 2024-11-12

Additional context
In my setup /tmp and ~/.cache are actually 2 different Btrfs subvolumes.

In my case these files do not actually consume extra space as it seems they are reflinked. And therefore occupied storage space is not doubled. But for people with different filesystems for /tmp and ~/.cache this issue might lead to effective duplication of consumed cache space.

Also when cache cleanup option will be implemented it might clean just ~/.cache/Psst without removing file copies from /tmp. So it will not free up space.

@Self-Perfection Self-Perfection added the bug Something isn't working label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant