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:
parent
5a34f6f047
commit
8953218e5c
|
@ -318,7 +318,7 @@ globalkeys = awful.util.table.join(
|
||||||
awful.prompt.run({ prompt = "Run Lua code: " },
|
awful.prompt.run({ prompt = "Run Lua code: " },
|
||||||
mypromptbox[awful.screen.focused()].widget,
|
mypromptbox[awful.screen.focused()].widget,
|
||||||
awful.util.eval, nil,
|
awful.util.eval, nil,
|
||||||
awful.util.getdir("cache") .. "/history_eval")
|
awful.util.get_cache_dir() .. "/history_eval")
|
||||||
end,
|
end,
|
||||||
{description = "lua execute prompt", group = "awesome"}),
|
{description = "lua execute prompt", group = "awesome"}),
|
||||||
-- Menubar
|
-- Menubar
|
||||||
|
|
|
@ -27,7 +27,7 @@ local function run(promptbox)
|
||||||
promptbox:spawn_and_handle_error(...)
|
promptbox:spawn_and_handle_error(...)
|
||||||
end,
|
end,
|
||||||
completion.shell,
|
completion.shell,
|
||||||
util.getdir("cache") .. "/history")
|
util.get_cache_dir() .. "/history")
|
||||||
end
|
end
|
||||||
|
|
||||||
local function spawn_and_handle_error(self, ...)
|
local function spawn_and_handle_error(self, ...)
|
||||||
|
|
|
@ -315,7 +315,7 @@ function menubar.show(scr)
|
||||||
awful.prompt.run(prompt_args, instance.prompt.widget,
|
awful.prompt.run(prompt_args, instance.prompt.widget,
|
||||||
function(s) end, -- exe_callback function set to do nothing
|
function(s) end, -- exe_callback function set to do nothing
|
||||||
awful.completion.shell, -- completion_callback
|
awful.completion.shell, -- completion_callback
|
||||||
awful.util.getdir("cache") .. "/history_menu",
|
awful.util.get_cache_dir() .. "/history_menu",
|
||||||
nil,
|
nil,
|
||||||
menubar.hide, function(query) menulist_update(query, scr) end,
|
menubar.hide, function(query) menulist_update(query, scr) end,
|
||||||
prompt_keypressed_callback
|
prompt_keypressed_callback
|
||||||
|
|
Loading…
Reference in New Issue