diff options
| author | Victor Kareh <[email protected]> | 2025-08-20 18:56:30 -0400 |
|---|---|---|
| committer | Victor Kareh <[email protected]> | 2025-09-02 18:21:52 +0000 |
| commit | 6d0200e0eac08a5867f83dd741a4dec7a1fefa25 (patch) | |
| tree | ebf8e98865146dd89f9b4d9a72be763c3f685a73 /data | |
| parent | e57d532ac69fc3f6f5a34d9ce648bbdfb6a81185 (diff) | |
| download | mate-settings-daemon-6d0200e0eac08a5867f83dd741a4dec7a1fefa25.tar.bz2 mate-settings-daemon-6d0200e0eac08a5867f83dd741a4dec7a1fefa25.tar.xz | |
xsettings: Add gsettings for custom XSettings overrides1.28
Add XSettings override gsettings to allow changing arbitrary XSettings
on GSettings without requiring code changes. This enables third-party
tools (like unity-gtk-module extensions) to integrate with MATE by
setting custom XSettings values at runtime.
The implementation adds an 'overrides' key to the xsettings plugin
schema which accepts a dictionary mapping XSetting names to values.
The complete list of XSettings is over at
https://www.freedesktop.org/wiki/Specifications/XSettingsRegistry/
Backported mostly from:
- https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/commit/c6e9079d
- https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/commit/35764838
Fixes: https://github.com/mate-desktop/mate-settings-daemon/issues/158
Diffstat (limited to 'data')
| -rw-r--r-- | data/org.mate.SettingsDaemon.plugins.xsettings.gschema.xml.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/data/org.mate.SettingsDaemon.plugins.xsettings.gschema.xml.in b/data/org.mate.SettingsDaemon.plugins.xsettings.gschema.xml.in index ae4721a..bdba044 100644 --- a/data/org.mate.SettingsDaemon.plugins.xsettings.gschema.xml.in +++ b/data/org.mate.SettingsDaemon.plugins.xsettings.gschema.xml.in @@ -10,5 +10,10 @@ <summary>Priority to use for this plugin</summary> <description>Priority to use for this plugin in mate-settings-daemon startup queue</description> </key> + <key type="a{sv}" name="overrides"> + <default>{}</default> + <summary>A dictionary of XSETTINGS to override</summary> + <description>This dictionary maps XSETTINGS names to overrides values. The values must be either strings, signed int32s or (in the case of colors), 4-tuples of uint16 (red, green, blue, alpha; 65535 is fully opaque).</description> + </key> </schema> </schemalist> |
