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

XDG Base Directory Support #112

Closed
BilLOPGVkPPn8z0JGJhgiAGNo9YAqpk5ruChl0F opened this issue Jul 15, 2019 · 2 comments

Comments

@BilLOPGVkPPn8z0JGJhgiAGNo9YAqpk5ruChl0F
Copy link

commented Jul 15, 2019

Could support of XDG Base Directories be considered? It would be nice to be freedesktop.org compliant and use XDG base directories by default. Not sure but I believe $HOME/.dvisvgm is mainly used as a cache? So then a couple of lines of code should fix it to be $XDG_CACHE_HOME/dvisvgm, which would be ~/.cache/dvisvgm on Linux.

This would reduce home directory pollution and better adhere to how various platforms expect caches/configs to be placed by applications.

@mgieseki

This comment has been minimized.

Copy link
Owner

commented Jul 16, 2019

That sounds reasonable. I'll have a look.

@mgieseki mgieseki self-assigned this Jul 16, 2019

@mgieseki

This comment has been minimized.

Copy link
Owner

commented Jul 16, 2019

Directory ~/.dvisvgm is only used to store glyph data generated when bitmap fonts are traced. So it's indeed a good idea to move the files from ~/.dvisvgm/cache to $XDG_CACHE_HOME/dvisvgm.

@mgieseki mgieseki closed this in 62059e0 Jul 16, 2019

@mgieseki mgieseki added this to the 2.7.4 milestone Jul 27, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.