Add RDP action type using XFreeRDP

This commit is contained in:
2026-08-25 19:15:44 +01:00
parent 7c9723fd95
commit 93a842ec73
2 changed files with 22 additions and 11 deletions

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)