From 404523f40671c406f3d2e3d9e467d49e13458c4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Tue, 17 Feb 2026 13:33:48 -0800 Subject: [PATCH] BackgroundItem: Launch app on list activate --- src/AppSystem/Background/BackgroundItem.vala | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/AppSystem/Background/BackgroundItem.vala b/src/AppSystem/Background/BackgroundItem.vala index 2e19fe94..d917624d 100644 --- a/src/AppSystem/Background/BackgroundItem.vala +++ b/src/AppSystem/Background/BackgroundItem.vala @@ -53,6 +53,17 @@ public class Dock.BackgroundItem : BaseIconGroup { Granite.TOOLTIP_SECONDARY_TEXT_MARKUP.printf (header_label.secondary_text) ); + list_box.row_activated.connect ((row) => { + popover_menu.popdown (); + + var app = ((BackgroundAppRow) row).app; + try { + app.app_info.launch (null, Gdk.Display.get_default ().get_app_launch_context ()); + } catch (Error e) { + critical (e.message); + } + }); + monitor.background_apps.items_changed.connect ((pos, n_removed, n_added) => { if (monitor.background_apps.get_n_items () == 0) { popover_menu.popdown ();