aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/app/app.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/cmd/app/app.go b/cmd/app/app.go
index ca809334..af9a3cf7 100644
--- a/cmd/app/app.go
+++ b/cmd/app/app.go
@@ -233,6 +233,19 @@ func parse(
c.DirectPipeWire = true
continue
+ case "desktop":
+ *c.Enablements |= hst.EDBus
+ if c.SessionBus.Call == nil {
+ c.SessionBus.Call = make(map[string]string)
+ }
+ c.SessionBus.Call["org.freedesktop.portal.Desktop"] = "*"
+ if c.SessionBus.Broadcast == nil {
+ c.SessionBus.Broadcast = make(map[string]string)
+ }
+ c.SessionBus.Broadcast["org.freedesktop.portal.Desktop"] =
+ "@/org/freedesktop/portal/*"
+ continue
+
default:
return nil, fmt.Errorf("invalid insecure flag %q", value)
}