trigger user-configured actions when other apps use xdg-desktop-portal ( https://github.com/flatpak/xdg-desktop-portal )
xdg-desktop-portals are a mechanism built on top of dbus and pipewire, used by Linux apps when direct access to sensitive system capabilities is unavailable (or when explicit user consent is desirable)
we can use dbus-monitor
to observe the negotiation and usage of such portals,
but it doesn't make it convenient to create a bird's-eye view of active sessions,
and might not be the easiest way to trigger portal-related automation, etc
xdp-hook
's purpose is not to offer privacy indicators like those on Android,
but rather to make it easier for others to offer such features,
by reacting to portal usage and performing user-configured tasks e.g. executing scripts
https://github.com/flatpak/xdg-desktop-portal
https://www.freedesktop.org/wiki/Software/dbus/
https://pipewire.org/
https://dbus.freedesktop.org/doc/dbus-monitor.1.html
https://source.android.com/devices/tech/config/privacy-indicators
https://meet.jit.si/
https://crates.io/crates/zbus and https://crates.io/crates/zvariant