snapd icon indicating copy to clipboard operation
snapd copied to clipboard

Ability to subscribe to PropertiesChanged signal on systemd's dbus interface thru system-observe interface

Open prash813 opened this issue 1 year ago • 1 comments

The following changes are meant to include access to 'PropertiesChanged' signal on systemd's dbus interface.

This change enables snap applications with the 'system-observe' plug to subscribe to the 'PropertiesChanged' signal on systemd's DBus interface.

  • template.go-: '/usr/bin/dbus-monitor' has been included in the list, as this executable allows monitoring signals on dbus.
  • system_observe.go-: Adds the necessary DBus API string to the 'systemObserveConnectedPlugAppArmor' constant for the 'PropertiesChanged' signal.
  • system_observe_test.go-: Adds corresponding test case for the new functionality.

prash813 avatar Dec 20 '24 13:12 prash813

Hey! prash813 has not signed the Canonical CLA which is required to get this contribution merged on this project.

Please head over to https://ubuntu.com/legal/contributors to read more about it.

github-actions[bot] avatar Dec 20 '24 13:12 github-actions[bot]