From 3c44c5c0566c70c9884bcba28c3c77b2594ce4f5 Mon Sep 17 00:00:00 2001 From: Ksaper Date: Sat, 25 Feb 2023 02:35:07 +0200 Subject: [PATCH] Use app_info:launch() for non terminal apps to fix issues with launching file managers --- widget/app_launcher/init.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/widget/app_launcher/init.lua b/widget/app_launcher/init.lua index 4f78aa1..2cfdf64 100644 --- a/widget/app_launcher/init.lua +++ b/widget/app_launcher/init.lua @@ -154,7 +154,7 @@ local function app_widget(self, app) if app.terminal == true then awful.spawn.with_shell(AWESOME_SENSIBLE_TERMINAL_PATH .. " -e " .. app.exec) else - awful.spawn(app.exec) + app:launch() end if _self.hide_on_launch then @@ -276,6 +276,9 @@ local function generate_apps(self) icon_name = desktop_app_info:get_string("Icon"), terminal = desktop_app_info:get_string("Terminal") == "true" and true or false, exec = exec, + launch = function() + app:launch() + end }) end end