aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorWilliam Hua <william.hua@canonical.com>2014-07-28 12:07:54 +0200
committerWilliam Hua <william.hua@canonical.com>2014-07-28 12:07:54 +0200
commit204761f0bb03d357b4e15e0f4a0c9e9076916438 (patch)
tree27b063467acbad15adf08fad637644d611e898cf /data
parent66693b52961aa9197c54c508223ec12c1156a691 (diff)
parent5821cf88381ec50b42fbef94e8b8ba671af2b8c4 (diff)
downloadayatana-indicator-keyboard-204761f0bb03d357b4e15e0f4a0c9e9076916438.tar.gz
ayatana-indicator-keyboard-204761f0bb03d357b4e15e0f4a0c9e9076916438.tar.bz2
ayatana-indicator-keyboard-204761f0bb03d357b4e15e0f4a0c9e9076916438.zip
Merge trunk.
Diffstat (limited to 'data')
-rw-r--r--data/Makefile.am45
-rw-r--r--data/indicator-keyboard.conf.in9
-rw-r--r--data/indicator-keyboard.desktop.in9
-rw-r--r--data/upstart/Makefile.am12
-rw-r--r--data/upstart/indicator-keyboard.desktop.in9
5 files changed, 76 insertions, 8 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index 7befb94e..bcb22cde 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -1,3 +1,10 @@
+
+SUBDIRS = upstart
+
+###########################
+# Icon Generator
+###########################
+
noinst_PROGRAMS = indicator-keyboard-icon-generator
AM_CFLAGS = -w -DGNOME_DESKTOP_USE_UNSTABLE_API
@@ -31,14 +38,29 @@ indicator_keyboard_icon_generator_LDFLAGS = $(AM_LDFLAGS) \
$(LIBXKLAVIER_LIBS) \
$(COVERAGE_LDFLAGS)
-dist_service_DATA = indicator-keyboard.service
-servicedir = $(DBUS_SERVICE_DIR)
+###########################
+# Upstart Config
+###########################
-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 $@
+upstart_jobsdir = $(datadir)/upstart/sessions/
+upstart_jobs_DATA = indicator-keyboard.conf
+
+%.conf: %.conf.in
+ $(AM_V_GEN) sed -e "s|\@pkglibexecdir\@|$(pkglibexecdir)|" $< > $@
+
+###########################
+# XDG Autostart File
+###########################
+
+xdg_autostartdir = /etc/xdg/autostart
+xdg_autostart_DATA = indicator-keyboard.desktop
+
+%.desktop: %.desktop.in
+ $(AM_V_GEN) sed -e "s|\@pkglibexecdir\@|$(pkglibexecdir)|" $< > $@
+
+###########################
+# Indicator Config
+###########################
dist_indicator_DATA = com.canonical.indicator.keyboard
indicatordir = $(INDICATOR_DIR)
@@ -62,6 +84,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@
@@ -73,4 +99,7 @@ gschemas.compiled: $(gsettings_SCHEMAS)
EXTRA_DIST = $(dist_service_DATA) \
$(dist_indicator_DATA) \
- $(gsettings_SCHEMAS)
+ $(gsettings_SCHEMAS) \
+ indicator-keyboard.conf.in \
+ indicator-keyboard.desktop.in
+
diff --git a/data/indicator-keyboard.conf.in b/data/indicator-keyboard.conf.in
new file mode 100644
index 00000000..737a4830
--- /dev/null
+++ b/data/indicator-keyboard.conf.in
@@ -0,0 +1,9 @@
+description "Indicator Keyboard Backend"
+
+start on indicator-services-start
+stop on desktop-end or indicator-services-end
+
+respawn
+respawn limit 2 10
+
+exec @pkglibexecdir@/indicator-keyboard-service --use-gtk
diff --git a/data/indicator-keyboard.desktop.in b/data/indicator-keyboard.desktop.in
new file mode 100644
index 00000000..3fca71fb
--- /dev/null
+++ b/data/indicator-keyboard.desktop.in
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Type=Application
+Name=Indicator Keyboard
+Exec=@pkglibexecdir@/indicator-keyboard-service
+OnlyShowIn=Unity;GNOME;
+NoDisplay=true
+StartupNotify=false
+Terminal=false
+AutostartCondition=GNOME3 unless-session gnome
diff --git a/data/upstart/Makefile.am b/data/upstart/Makefile.am
new file mode 100644
index 00000000..c0b6a2eb
--- /dev/null
+++ b/data/upstart/Makefile.am
@@ -0,0 +1,12 @@
+###########################
+# Upstart XDG Override
+###########################
+
+xdg_autostartdir = $(datadir)/upstart/xdg/autostart
+xdg_autostart_DATA = indicator-keyboard.desktop
+
+%.desktop: %.desktop.in
+ $(AM_V_GEN) sed -e "s|\@pkglibexecdir\@|$(pkglibexecdir)|" $< > $@
+
+EXTRA_DIST = indicator-keyboard.desktop.in
+
diff --git a/data/upstart/indicator-keyboard.desktop.in b/data/upstart/indicator-keyboard.desktop.in
new file mode 100644
index 00000000..ec7e565c
--- /dev/null
+++ b/data/upstart/indicator-keyboard.desktop.in
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Type=Application
+Name=Indicator Keyboard
+Exec=@pkglibexecdir@/indicator-keyboard-service
+OnlyShowIn=Unity;
+NoDisplay=true
+StartupNotify=false
+Terminal=false
+Hidden=true