diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2013-06-19 21:13:09 +0000 |
---|---|---|
committer | Tarmac <Unknown> | 2013-06-19 21:13:09 +0000 |
commit | 0ce78de0eae6f44a0afe6e5b4bdc6da83f6dbdf8 (patch) | |
tree | ce626b15bcfb92beec4487a6b7fe50ef4be91dac /data | |
parent | 0b0585581a8da994362ef4cfe3a2168917a47ff4 (diff) | |
parent | 258f3ad689ae4ba49e2813a5051b4968d568f999 (diff) | |
download | ayatana-indicator-power-0ce78de0eae6f44a0afe6e5b4bdc6da83f6dbdf8.tar.gz ayatana-indicator-power-0ce78de0eae6f44a0afe6e5b4bdc6da83f6dbdf8.tar.bz2 ayatana-indicator-power-0ce78de0eae6f44a0afe6e5b4bdc6da83f6dbdf8.zip |
Convert the power indicator into a service that exports GMenus and GActions in accordance with our indicator-ng design.
Approved by PS Jenkins bot, Ted Gould.
Diffstat (limited to 'data')
-rw-r--r-- | data/Makefile.am | 30 | ||||
-rw-r--r-- | data/com.canonical.indicator.power | 9 | ||||
-rw-r--r-- | data/indicator-power.service.in | 3 |
3 files changed, 41 insertions, 1 deletions
diff --git a/data/Makefile.am b/data/Makefile.am index 375c7ca..c2ce65d 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -1,6 +1,34 @@ +BUILT_SOURCES= +CLEANFILES= +EXTRA_DIST= + +# +# the indicator bus file +# + +indicatorsdir = $(prefix)/share/unity/indicators +dist_indicators_DATA = com.canonical.indicator.power + +# +# the dbus service file +# + +dbus_servicesdir = $(DBUSSERVICEDIR) +dbus_services_DATA = indicator-power.service +dbus_services_in = $(dbus_services_DATA:.service=.service.in) +$(dbus_services_DATA): $(dbus_services_in) + $(AM_V_GEN) $(SED) -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@ +BUILT_SOURCES += $(dbus_services_DATA) +CLEANFILES += $(dbus_services_DATA) +EXTRA_DIST += $(dbus_services_in) + +# +# the gettings +# gsettings_in_file = com.canonical.indicator.power.gschema.xml.in gsettings_SCHEMAS = $(gsettings_in_file:.xml.in=.xml) +CLEANFILES += $(gsettings_SCHEMAS) @INTLTOOL_XML_NOMERGE_RULE@ @@ -10,7 +38,7 @@ dist_noinst_DATA = \ com.canonical.indicator.power.gschema.xml \ $(gsettings_in_file) -CLEANFILES = \ +CLEANFILES += \ $(gsettings_SCHEMAS) MAINTAINERCLEANFILES = \ diff --git a/data/com.canonical.indicator.power b/data/com.canonical.indicator.power new file mode 100644 index 0000000..1ebc075 --- /dev/null +++ b/data/com.canonical.indicator.power @@ -0,0 +1,9 @@ +[Indicator Service] +Name=indicator-power +ObjectPath=/com/canonical/indicator/power + +[desktop] +ObjectPath=/com/canonical/indicator/power/desktop + +[greeter] +ObjectPath=/com/canonical/indicator/power/greeter diff --git a/data/indicator-power.service.in b/data/indicator-power.service.in new file mode 100644 index 0000000..c59c69e --- /dev/null +++ b/data/indicator-power.service.in @@ -0,0 +1,3 @@ +[D-BUS Service] +Name=com.canonical.indicator.power +Exec=@libexecdir@/indicator-power-service |