Use app_info:launch() for non terminal apps to fix issues with launching file managers

This commit is contained in:
Ksaper 2023-02-25 02:35:07 +02:00
parent 9e0c6fd96a
commit 3c44c5c056
1 changed files with 4 additions and 1 deletions

View File

@ -154,7 +154,7 @@ local function app_widget(self, app)
if app.terminal == true then if app.terminal == true then
awful.spawn.with_shell(AWESOME_SENSIBLE_TERMINAL_PATH .. " -e " .. app.exec) awful.spawn.with_shell(AWESOME_SENSIBLE_TERMINAL_PATH .. " -e " .. app.exec)
else else
awful.spawn(app.exec) app:launch()
end end
if _self.hide_on_launch then if _self.hide_on_launch then
@ -276,6 +276,9 @@ local function generate_apps(self)
icon_name = desktop_app_info:get_string("Icon"), icon_name = desktop_app_info:get_string("Icon"),
terminal = desktop_app_info:get_string("Terminal") == "true" and true or false, terminal = desktop_app_info:get_string("Terminal") == "true" and true or false,
exec = exec, exec = exec,
launch = function()
app:launch()
end
}) })
end end
end end