From 8953218e5ce0bfe1bf567bf3069a7aae28797d02 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sat, 28 Nov 2015 19:36:26 +0100 Subject: [PATCH] Use get_cache_dir() instead of getdir("cache") everywhere Just because I like that function more. :-) Signed-off-by: Uli Schlachter --- awesomerc.lua | 2 +- lib/awful/widget/prompt.lua | 2 +- lib/menubar/init.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/awesomerc.lua b/awesomerc.lua index f5528a694..305c8a06c 100755 --- a/awesomerc.lua +++ b/awesomerc.lua @@ -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 diff --git a/lib/awful/widget/prompt.lua b/lib/awful/widget/prompt.lua index 37ee82ab8..ef4af3d39 100644 --- a/lib/awful/widget/prompt.lua +++ b/lib/awful/widget/prompt.lua @@ -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, ...) diff --git a/lib/menubar/init.lua b/lib/menubar/init.lua index 75a66480e..79ee599df 100644 --- a/lib/menubar/init.lua +++ b/lib/menubar/init.lua @@ -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