Use get_cache_dir() instead of getdir("cache") everywhere

Just because I like that function more. :-)

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2015-11-28 19:36:26 +01:00
parent 5a34f6f047
commit 8953218e5c
3 changed files with 3 additions and 3 deletions

View file

@ -318,7 +318,7 @@ globalkeys = awful.util.table.join(
awful.prompt.run({ prompt = "Run Lua code: " },
mypromptbox[awful.screen.focused()].widget,
awful.util.eval, nil,
awful.util.getdir("cache") .. "/history_eval")
awful.util.get_cache_dir() .. "/history_eval")
end,
{description = "lua execute prompt", group = "awesome"}),
-- Menubar

View file

@ -27,7 +27,7 @@ local function run(promptbox)
promptbox:spawn_and_handle_error(...)
end,
completion.shell,
util.getdir("cache") .. "/history")
util.get_cache_dir() .. "/history")
end
local function spawn_and_handle_error(self, ...)

View file

@ -315,7 +315,7 @@ function menubar.show(scr)
awful.prompt.run(prompt_args, instance.prompt.widget,
function(s) end, -- exe_callback function set to do nothing
awful.completion.shell, -- completion_callback
awful.util.getdir("cache") .. "/history_menu",
awful.util.get_cache_dir() .. "/history_menu",
nil,
menubar.hide, function(query) menulist_update(query, scr) end,
prompt_keypressed_callback