File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments