From b6b73be508cbffa2e87ed15b88a622c7c105cdfe Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 19 Feb 2014 22:18:44 -0600 Subject: Dropping the registration as a DBus service --- data/Makefile.am | 9 --------- 1 file changed, 9 deletions(-) (limited to 'data/Makefile.am') diff --git a/data/Makefile.am b/data/Makefile.am index 4f0b7175..a6549e93 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -32,15 +32,6 @@ indicator_keyboard_icon_generator_LDFLAGS = $(AM_LDFLAGS) \ $(LIBXKLAVIER_LIBS) \ $(COVERAGE_LDFLAGS) -dist_service_DATA = indicator-keyboard.service -servicedir = $(DBUS_SERVICE_DIR) - -indicator-keyboard.service: - $(AM_V_GEN) (echo '[D-BUS Service]'; \ - echo 'Name=com.canonical.indicator.keyboard'; \ - echo 'Exec=${libexecdir}/indicator-keyboard-service --use-gtk') > $@.tmp && \ - mv $@.tmp $@ - dist_indicator_DATA = com.canonical.indicator.keyboard indicatordir = $(INDICATOR_DIR) -- cgit v1.2.3 From c9d231dfed8063f705b68cf46d7176ecdfb7ca72 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 19 Feb 2014 22:23:57 -0600 Subject: Adding an Upstart job configuration --- data/Makefile.am | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'data/Makefile.am') diff --git a/data/Makefile.am b/data/Makefile.am index a6549e93..9c42ccf0 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -1,3 +1,7 @@ +########################### +# Icon Generator +########################### + noinst_PROGRAMS = indicator-keyboard-icon-generator AM_CFLAGS = -w -DGNOME_DESKTOP_USE_UNSTABLE_API @@ -32,6 +36,20 @@ indicator_keyboard_icon_generator_LDFLAGS = $(AM_LDFLAGS) \ $(LIBXKLAVIER_LIBS) \ $(COVERAGE_LDFLAGS) +########################### +# Upstart Config +########################### + +upstart_jobsdir = $(datadir)/upstart/sessions/ +upstart_jobs_DATA = indicator-keyboard.conf + +%.conf: %.conf.in + $(AM_V_GEN) sed -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@ + +########################### +# Indicator Config +########################### + dist_indicator_DATA = com.canonical.indicator.keyboard indicatordir = $(INDICATOR_DIR) @@ -51,6 +69,10 @@ com.canonical.indicator.keyboard: echo 'ObjectPath=/com/canonical/indicator/keyboard/desktop') > $@.tmp && \ mv $@.tmp $@ +########################### +# GSettings Schemas +########################### + gsettings_SCHEMAS = com.canonical.indicator.keyboard.gschema.xml @GSETTINGS_RULES@ @@ -62,4 +84,6 @@ gschemas.compiled: $(gsettings_SCHEMAS) EXTRA_DIST = $(dist_service_DATA) \ $(dist_indicator_DATA) \ - $(gsettings_SCHEMAS) + $(gsettings_SCHEMAS) \ + indicator-keyboard.conf.in + -- cgit v1.2.3 From 20ef67d77138f70a0cd637189acf4c606da2773c Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 19 Feb 2014 22:34:41 -0600 Subject: Add in the upstart xdg override --- data/Makefile.am | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'data/Makefile.am') diff --git a/data/Makefile.am b/data/Makefile.am index 9c42ccf0..91c94dfb 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -1,3 +1,6 @@ + +SUBDIRS = upstart + ########################### # Icon Generator ########################### @@ -46,6 +49,16 @@ upstart_jobs_DATA = indicator-keyboard.conf %.conf: %.conf.in $(AM_V_GEN) sed -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@ +########################### +# XDG Autostart File +########################### + +xdg_autostartdir = /etc/xdg/autostart +xdg_autostart_DATA = indicator-keyboard.desktop + +%.desktop: %.desktop.in + $(AM_V_GEN) sed -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@ + ########################### # Indicator Config ########################### @@ -85,5 +98,6 @@ gschemas.compiled: $(gsettings_SCHEMAS) EXTRA_DIST = $(dist_service_DATA) \ $(dist_indicator_DATA) \ $(gsettings_SCHEMAS) \ - indicator-keyboard.conf.in + indicator-keyboard.conf.in \ + indicator-keyboard.desktop.in -- cgit v1.2.3 From 76ab6be0d02f82a95528e0d95ca2c80f85ecd39b Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 19 Feb 2014 22:39:39 -0600 Subject: Switch to pkglibexecdir --- data/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'data/Makefile.am') diff --git a/data/Makefile.am b/data/Makefile.am index 91c94dfb..ae1d9b0f 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -47,7 +47,7 @@ upstart_jobsdir = $(datadir)/upstart/sessions/ upstart_jobs_DATA = indicator-keyboard.conf %.conf: %.conf.in - $(AM_V_GEN) sed -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@ + $(AM_V_GEN) sed -e "s|\@pkglibexecdir\@|$(pkglibexecdir)|" $< > $@ ########################### # XDG Autostart File @@ -57,7 +57,7 @@ xdg_autostartdir = /etc/xdg/autostart xdg_autostart_DATA = indicator-keyboard.desktop %.desktop: %.desktop.in - $(AM_V_GEN) sed -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@ + $(AM_V_GEN) sed -e "s|\@pkglibexecdir\@|$(pkglibexecdir)|" $< > $@ ########################### # Indicator Config -- cgit v1.2.3