aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2012-05-21 16:45:58 +0200
committerLars Uebernickel <lars.uebernickel@canonical.com>2012-05-21 16:45:58 +0200
commit14716e2d8d8bf7ccd8ba3ee2e9607a718bf2ff66 (patch)
treebd3dc3c0911f7ae599f11c8700d63cc8ac1ec66c /data
parentab416588f88aa199193f234220f102788c0493c0 (diff)
downloadayatana-indicator-messages-14716e2d8d8bf7ccd8ba3ee2e9607a718bf2ff66.tar.gz
ayatana-indicator-messages-14716e2d8d8bf7ccd8ba3ee2e9607a718bf2ff66.tar.bz2
ayatana-indicator-messages-14716e2d8d8bf7ccd8ba3ee2e9607a718bf2ff66.zip
Use a gsettings list for finding out which apps should appear in the menu
Previously, this was handled by looking for .desktop files in various system and user directories. The messaging menu should not display any applications by default anymore, so a simple per-user gsettings list suffices. A neat side effect is that the hairy blacklist handling is not needed anymore, either. Small regression: apps are not configurable at runtime anymore (settings key is not listened to for changes).
Diffstat (limited to 'data')
-rw-r--r--data/Makefile.am7
-rw-r--r--data/com.canonical.indicator.messages.gschema.xml12
2 files changed, 18 insertions, 1 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index 351601b..488ce05 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -6,6 +6,11 @@ dbus_services_DATA = indicator-messages.service
%.service: %.service.in
sed -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
-EXTRA_DIST = indicator-messages.service.in
+gsettings_SCHEMAS = com.canonical.indicator.messages.gschema.xml
+@GSETTINGS_RULES@
+
+EXTRA_DIST = \
+ $(gsettings_SCHEMAS) \
+ indicator-messages.service.in
CLEANFILES = indicator-messages.service
diff --git a/data/com.canonical.indicator.messages.gschema.xml b/data/com.canonical.indicator.messages.gschema.xml
new file mode 100644
index 0000000..d9165cd
--- /dev/null
+++ b/data/com.canonical.indicator.messages.gschema.xml
@@ -0,0 +1,12 @@
+<schemalist>
+ <schema id="com.canonical.indicator.messages" path="/com/canonical/indicator/messages/" gettext-domain="indicator-messages">
+ <key name="applications" type="as">
+ <summary>List of applications that are shown in the messaging menu</summary>
+ <description>
+ Applications corresponding to the desktop file ids in this list are shown in the messaging menu.
+ </description>
+ <default>[]</default>
+ </key>
+ </schema>
+</schemalist>
+