Add RDP action type using XFreeRDP

This commit is contained in:
fred.boniface committed 2026-08-25 19:15:44 +01:00
1 parent 7c9723fd95
commit 93a842ec73
2 files changed
+22 -11

No files matched your search

+5 -4
View File
@@ -36,16 +36,17 @@ class LauncherApp(Gtk.Application):
for service in self.config.get("services", []):
title = service.get("title", "Service")
desc = service.get("desc", "")
service_type = service.get("type", "command")
target = service.get("target", "")
bg_img = service.get("bg_image", "")
self.ui.add_card(
title,
desc,
bg_img,
lambda t=service_type, tgt=target: self.dispatcher.dispatch(t, tgt),
)
lambda svc=service: self.dispatcher.dispatch(
svc.get("type", "command"),
svc,
),
)
self.ui.setup_exit_shortcut(self.quit)