Prefer cache_dir over data_dir for files that should be temporary - dotfiles - leot's dotfiles
(HTM) hg clone https://bitbucket.org/iamleot/dotfiles
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) changeset f5327b20060d620762ffc32fbc599f6228a1e27c
(DIR) parent e4e1e6658946483719580c60e6e265b138206b0f
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Wed, 26 Sep 2018 21:48:20
Prefer cache_dir over data_dir for files that should be temporary
XXX: Unfortunately a lot of modules hard-code that and should be probably
XXX: hacked in order to more easily permit that.
Diffstat:
config/luakit/userconf.lua | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff -r e4e1e6658946 -r f5327b20060d config/luakit/userconf.lua
--- a/config/luakit/userconf.lua Wed Sep 26 16:54:15 2018 +0200
+++ b/config/luakit/userconf.lua Wed Sep 26 21:48:20 2018 +0200
@@ -16,3 +16,9 @@
local editor = require "editor"
editor.editor_cmd = "tmux new-window \"vi {file} ; tmux wait-for -S luakit-editor\" \\; wait-for luakit-editor"
+
+-- Prefer cache_dir over data_dir for files that should be temporary
+local downloads = require "downloads"
+downloads.db_path = luakit.cache_dir .. "/downloads.db"
+local error_page = require "error_page"
+downloads.cert_db_path = luakit.cache_dir .. "/allowed_certificates.db"