Use panel-main-menu-action to open applications menu (#2135)

This commit is contained in:
Leo 2024-12-03 20:32:49 +03:00 committed by GitHub
parent bb04c32aaf
commit 1e8c8802c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -410,10 +410,12 @@ namespace Gala {
private void launch_action (string action_key) {
try {
var action = behavior_settings.get_string (action_key);
if (action != null && action != "") {
if (action != null) {
Process.spawn_command_line_async (action);
}
} catch (Error e) { warning (e.message); }
} catch (Error e) {
warning (e.message);
}
}
private void on_monitors_changed () {
@ -1045,13 +1047,7 @@ namespace Gala {
current.@delete (Gtk.get_current_event_time ());
break;
case ActionType.OPEN_LAUNCHER:
try {
Process.spawn_command_line_async (
behavior_settings.get_string ("panel-main-menu-action")
);
} catch (Error e) {
warning (e.message);
}
launch_action ("panel-main-menu-action");
break;
case ActionType.WINDOW_OVERVIEW:
if (window_overview == null) {