mirror of
https://github.com/jpochyla/psst.git
synced 2026-04-27 07:25:52 +03:00
[GH-ISSUE #563] Psst stores cached songs twice in two different directories #337
Labels
No labels
api
bug
build
documentation
duplicate
enhancement
good first issue
help wanted
idea
invalid
linux
lowprio
macos
pull-request
upstream
windows
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/psst#337
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Self-Perfection on GitHub (Dec 5, 2024).
Original GitHub issue: https://github.com/jpochyla/psst/issues/563
Describe the bug
I see that psst creates lots of
/tmp/.tmpXXXXXXfiles. 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 checkedTo Reproduce
Use psst under GNU/Linux?
Probably to trigger this bug
/tmpand~/.cachehas to be on different volumes.Expected behavior
Cache files should be created in the same directory where they will be eventually stored.
Environment
69314f9, built 2024-11-12Additional context
In my setup
/tmpand~/.cacheare 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
/tmpand~/.cachethis issue might lead to effective duplication of consumed cache space.Also when cache cleanup option will be implemented it might clean just
~/.cache/Psstwithout removing file copies from /tmp. So it will not free up space.@SO9010 commented on GitHub (Dec 20, 2024):
#536
@Self-Perfection commented on GitHub (May 5, 2025):
I recommend running Psst via
firejail --private-tmpas workaround for this.