nom icon indicating copy to clipboard operation
nom copied to clipboard

Should we use os.UserCacheDir for database?

Open larsks opened this issue 5 months ago • 1 comments

Currently, nom stores the database adjacent to the configuration file. Would it make sense to move this from os.UserConfigDir() to os.UserCacheDir()? That is, use $XDG_CACHE_HOME instead of $XDG_CONFIG_HOME.

larsks avatar Oct 01 '25 19:10 larsks

The thinking here is that you may want to version control the DB as well and so having it all in a single location is easier. We could allow the db location to be configurable if users want to have it at XDG_CONFIG_CACHE or elsewhere

guyfedwards avatar Oct 01 '25 20:10 guyfedwards