-
Notifications
You must be signed in to change notification settings - Fork 29
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
Write data to a standard writable directory for cache data #16
Comments
PRs welcome, requirement is that the location should available on all systems mpv runs on. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, the script attempts to write the user ID and the sponsorblock DB within the "sponsorblock_shared" directory. However, the directory in which the script is located isn't always writable (for example when the script is installed through a system package manager and used with
mpv --scripts=[path to script]
).A more standard location would perhaps be
$XDG_CACHE_HOME/mpv/scripts/sponsorblock/sponsorblock.{txt,db}
on Linux. I'm not sure whether similar standard paths are defined on other platforms though.NixOS/nixpkgs#92507 (comment)
The text was updated successfully, but these errors were encountered: