Skip to content

Commit

Permalink
interfaces/desktop: Improve integration with xdg-desktop-portal (#14335)
Browse files Browse the repository at this point in the history
This allows two things:
* introspection on the portal interfaces
* being notified about changes (including settings)
  • Loading branch information
er-vin committed Sep 19, 2024
1 parent 9564c11 commit 5734b41
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions interfaces/builtin/desktop.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ dbus (receive, send)
path=/org/freedesktop/portal/{desktop,documents}{,/**}
peer=(label=unconfined),
dbus (receive, send)
bus=session
interface=org.freedesktop.DBus.Introspectable
path=/org/freedesktop/portal/{desktop,documents}{,/**}
peer=(label=unconfined),
# The portals service is normally running and newer versions of
# xdg-desktop-portal include AssumedAppArmor=unconfined. Since older
# systems don't have this and because gtkfilechoosernativeportal.c relies on
Expand Down Expand Up @@ -474,11 +480,21 @@ dbus (receive, send)
interface=org.freedesktop.DBus.Properties
peer=(label=unconfined),
# Allow access to the regular xdg-desktop-portal APIs
dbus (send)
# Allow access to the regular xdg-desktop-portal and xdg-document-portal APIs
dbus (receive, send)
bus=session
interface=org.freedesktop.portal.*
path=/org/freedesktop/portal/desktop{,/**}
path=/org/freedesktop/portal/{desktop,documents}{,/**}
peer=(label=unconfined),
dbus (receive, send)
bus=session
interface=org.freedesktop.DBus.Properties
path=/org/freedesktop/portal/{desktop,documents}{,/**}
peer=(label=unconfined),
dbus (receive, send)
bus=session
interface=org.freedesktop.DBus.Introspectable
path=/org/freedesktop/portal/{desktop,documents}{,/**}
peer=(label=unconfined),
# Allow access to various paths gnome-session and gnome-shell need.
Expand Down

0 comments on commit 5734b41

Please sign in to comment.