Add RDP action type using XFreeRDP
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user