mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
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
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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, ...)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue