Skip to content

Commit 9a94ad7

Browse files
committed
Use panel-main-menu-action to open applications menu
1 parent bb04c32 commit 9a94ad7

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

src/WindowManager.vala

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -410,10 +410,12 @@ namespace Gala {
410410
private void launch_action (string action_key) {
411411
try {
412412
var action = behavior_settings.get_string (action_key);
413-
if (action != null && action != "") {
413+
if (action != null) {
414414
Process.spawn_command_line_async (action);
415415
}
416-
} catch (Error e) { warning (e.message); }
416+
} catch (Error e) {
417+
warning (e.message);
418+
}
417419
}
418420

419421
private void on_monitors_changed () {
@@ -1045,13 +1047,7 @@ namespace Gala {
10451047
current.@delete (Gtk.get_current_event_time ());
10461048
break;
10471049
case ActionType.OPEN_LAUNCHER:
1048-
try {
1049-
Process.spawn_command_line_async (
1050-
behavior_settings.get_string ("panel-main-menu-action")
1051-
);
1052-
} catch (Error e) {
1053-
warning (e.message);
1054-
}
1050+
launch_action ("panel-main-menu-action");
10551051
break;
10561052
case ActionType.WINDOW_OVERVIEW:
10571053
if (window_overview == null) {

0 commit comments

Comments
 (0)