Fix: Usr: Replaced hardcoded path to author's home directory with the STORAGE variable

Resolves #134
This commit is contained in:
Bart Verhagen 2020-04-29 10:50:20 +02:00
parent 99501f066d
commit d24fbe948a
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ local function worker(args)
trash_button:connect_signal("button::press", function(c) trash_button:connect_signal("button::press", function(c)
table.remove(result.todo_items, i) table.remove(result.todo_items, i)
spawn.easy_async_with_shell("printf '" .. json.encode(result) .. "' > /home/pmakhov/.cache/awmw/todo-widget/todos.json") spawn.easy_async_with_shell("printf '" .. json.encode(result) .. "' > " .. STORAGE)
spawn.easy_async(GET_TODO_ITEMS, function(stdout) update_widget(stdout) end) spawn.easy_async(GET_TODO_ITEMS, function(stdout) update_widget(stdout) end)
end) end)