From 50cfa6c1119e49290a8b6e65115bc1a1891f5dc6 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Mon, 1 May 2017 13:19:19 +0200 Subject: [PATCH] Run menubar.utils.parse_dir in protected context Fixes: https://github.com/awesomeWM/awesome/issues/1761 Signed-off-by: Uli Schlachter --- lib/menubar/utils.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/menubar/utils.lua b/lib/menubar/utils.lua index 7c88b3569..a83674485 100644 --- a/lib/menubar/utils.lua +++ b/lib/menubar/utils.lua @@ -287,11 +287,11 @@ function utils.parse_dir(dir_path, callback) enum:async_close() end - gio.Async.start(function() + gio.Async.start(protected_call.call)(function() local result = {} parser(dir_path, result) - protected_call.call(callback, result) - end)() + callback(result) + end) end function utils.compute_textbox_width(textbox, s)