From b49421d8e8c73447872de571620649309e774708 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Thu, 30 Sep 2021 21:06:38 +0200 Subject: [PATCH] monitor-config-store: Allow changing D-Bus configuration policy Adding a element containing a boolean (yes/no) determines whether org.gnome.Mutter.DisplayConfig ApplyMonitorsConfig will be callable. The state is also introspectable via the ApplyMonitorsConfigAllowed property on the same interface. For example no Part-of: --- .../org.gnome.Mutter.DisplayConfig.xml | 7 ++ src/backends/meta-monitor-config-store.c | 68 +++++++++++++++++++ src/backends/meta-monitor-config-store.h | 8 +++ src/backends/meta-monitor-manager.c | 24 +++++++ .../monitor-configs/policy-dbus-invalid.xml | 6 ++ src/tests/monitor-configs/policy-dbus.xml | 5 ++ src/tests/monitor-store-unit-tests.c | 50 ++++++++++++++ 7 files changed, 168 insertions(+) create mode 100644 src/tests/monitor-configs/policy-dbus-invalid.xml create mode 100644 src/tests/monitor-configs/policy-dbus.xml diff --git a/data/dbus-interfaces/org.gnome.Mutter.DisplayConfig.xml b/data/dbus-interfaces/org.gnome.Mutter.DisplayConfig.xml index 2a7c5bb1e..af7cd6472 100644 --- a/data/dbus-interfaces/org.gnome.Mutter.DisplayConfig.xml +++ b/data/dbus-interfaces/org.gnome.Mutter.DisplayConfig.xml @@ -290,6 +290,13 @@ --> + + +