aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-08-19 20:34:23 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-08-19 20:34:23 -0500
commitcc63804a89df0d2067f7e21b4e3a7c8d5149073d (patch)
tree0c7b7041ab13707a7219a7913afdbca7ca50847f
parent41f91fb03beed16bfadd770c059735272e27df3a (diff)
downloadayatana-indicator-display-cc63804a89df0d2067f7e21b4e3a7c8d5149073d.tar.gz
ayatana-indicator-display-cc63804a89df0d2067f7e21b4e3a7c8d5149073d.tar.bz2
ayatana-indicator-display-cc63804a89df0d2067f7e21b4e3a7c8d5149073d.zip
initial pass at data directory w/the standard items: unity indicator file, upstart conf, desktop files
-rw-r--r--data/CMakeLists.txt74
-rw-r--r--data/com.canonical.indicator.display11
-rw-r--r--data/indicator-display.conf.in9
-rw-r--r--data/indicator-display.desktop.in9
-rw-r--r--data/indicator-display.upstart.desktop.in9
5 files changed, 112 insertions, 0 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt
new file mode 100644
index 0000000..815acbd
--- /dev/null
+++ b/data/CMakeLists.txt
@@ -0,0 +1,74 @@
+##
+## Upstart Job File
+##
+
+# where to install
+set (UPSTART_JOBS_DIR "${CMAKE_INSTALL_FULL_DATADIR}/upstart/sessions")
+message (STATUS "${UPSTART_JOBS_DIR} is the Upstart Jobs File install dir")
+
+set (UPSTART_JOB_NAME "${CMAKE_PROJECT_NAME}.conf")
+set (UPSTART_JOB_FILE "${CMAKE_CURRENT_BINARY_DIR}/${UPSTART_JOB_NAME}")
+set (UPSTART_JOB_FILE_IN "${CMAKE_CURRENT_SOURCE_DIR}/${UPSTART_JOB_NAME}.in")
+
+# build it
+set (pkglibexecdir "${CMAKE_INSTALL_FULL_PKGLIBEXECDIR}")
+configure_file ("${UPSTART_JOB_FILE_IN}" "${UPSTART_JOB_FILE}")
+
+# install it
+install (FILES "${UPSTART_JOB_FILE}"
+ DESTINATION "${UPSTART_JOBS_DIR}")
+
+##
+## XDG Autostart File
+##
+
+# where to install
+set (XDG_AUTOSTART_DIR "/etc/xdg/autostart")
+message (STATUS "${XDG_AUTOSTART_DIR} is the XDG Autostart install dir")
+
+set (XDG_AUTOSTART_NAME "${CMAKE_PROJECT_NAME}.desktop")
+set (XDG_AUTOSTART_FILE "${CMAKE_CURRENT_BINARY_DIR}/${XDG_AUTOSTART_NAME}")
+set (XDG_AUTOSTART_FILE_IN "${CMAKE_CURRENT_SOURCE_DIR}/${XDG_AUTOSTART_NAME}.in")
+
+# build it
+set (pkglibexecdir "${CMAKE_INSTALL_FULL_PKGLIBEXECDIR}")
+configure_file ("${XDG_AUTOSTART_FILE_IN}" "${XDG_AUTOSTART_FILE}")
+
+# install it
+install (FILES "${XDG_AUTOSTART_FILE}"
+ DESTINATION "${XDG_AUTOSTART_DIR}")
+
+##
+## Upstart XDG Autostart Override
+##
+
+# where to install
+set (UPSTART_XDG_AUTOSTART_DIR "${CMAKE_INSTALL_FULL_DATAROOTDIR}/upstart/xdg/autostart")
+message (STATUS "${UPSTART_XDG_AUTOSTART_DIR} is the Upstart XDG autostart override dir")
+
+set (UPSTART_XDG_AUTOSTART_NAME "${CMAKE_PROJECT_NAME}.upstart.desktop")
+set (UPSTART_XDG_AUTOSTART_FILE "${CMAKE_CURRENT_BINARY_DIR}/${UPSTART_XDG_AUTOSTART_NAME}")
+set (UPSTART_XDG_AUTOSTART_FILE_IN "${CMAKE_CURRENT_SOURCE_DIR}/${UPSTART_XDG_AUTOSTART_NAME}.in")
+
+# build it
+set (pkglibexecdir "${CMAKE_INSTALL_FULL_PKGLIBEXECDIR}")
+configure_file ("${UPSTART_XDG_AUTOSTART_FILE_IN}" "${UPSTART_XDG_AUTOSTART_FILE}")
+
+# install it
+install (FILES "${UPSTART_XDG_AUTOSTART_FILE}"
+ DESTINATION "${UPSTART_XDG_AUTOSTART_DIR}"
+ RENAME "${XDG_AUTOSTART_NAME}")
+
+##
+## Unity Indicator File
+##
+
+# where to install
+set (UNITY_INDICATOR_DIR "${CMAKE_INSTALL_FULL_DATAROOTDIR}/unity/indicators")
+message (STATUS "${UNITY_INDICATOR_DIR} is the Unity Indicator install dir")
+
+set (UNITY_INDICATOR_NAME "com.canonical.indicator.display")
+set (UNITY_INDICATOR_FILE "${CMAKE_CURRENT_SOURCE_DIR}/${UNITY_INDICATOR_NAME}")
+
+install (FILES "${UNITY_INDICATOR_FILE}"
+ DESTINATION "${UNITY_INDICATOR_DIR}")
diff --git a/data/com.canonical.indicator.display b/data/com.canonical.indicator.display
new file mode 100644
index 0000000..e94405a
--- /dev/null
+++ b/data/com.canonical.indicator.display
@@ -0,0 +1,11 @@
+[Indicator Service]
+Name=indicator-display
+ObjectPath=/com/canonical/indicator/display
+Position=90
+
+[phone]
+ObjectPath=/com/canonical/indicator/display/phone
+
+[phone_greeter]
+ObjectPath=/com/canonical/indicator/display/phone
+
diff --git a/data/indicator-display.conf.in b/data/indicator-display.conf.in
new file mode 100644
index 0000000..2fbabc4
--- /dev/null
+++ b/data/indicator-display.conf.in
@@ -0,0 +1,9 @@
+description "Indicator Display Backend"
+
+start on indicator-services-start
+stop on desktop-end or indicator-services-end
+
+respawn
+respawn limit 2 10
+
+exec @pkglibexecdir@/indicator-display-service
diff --git a/data/indicator-display.desktop.in b/data/indicator-display.desktop.in
new file mode 100644
index 0000000..b0017b1
--- /dev/null
+++ b/data/indicator-display.desktop.in
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Type=Application
+Name=Indicator Display
+Exec=@pkglibexecdir@/indicator-display-service
+OnlyShowIn=Unity;GNOME;
+NoDisplay=true
+StartupNotify=false
+Terminal=false
+AutostartCondition=GNOME3 unless-session gnome
diff --git a/data/indicator-display.upstart.desktop.in b/data/indicator-display.upstart.desktop.in
new file mode 100644
index 0000000..7e6cfe6
--- /dev/null
+++ b/data/indicator-display.upstart.desktop.in
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Type=Application
+Name=Indicator Display
+Exec=@pkglibexecdir@/indicator-display-service
+OnlyShowIn=Unity;
+NoDisplay=true
+StartupNotify=false
+Terminal=false
+Hidden=true