aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-05-31 17:01:13 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-05-31 17:01:26 +0200
commit7354fe608231546fa2b5271cd8777183580741f7 (patch)
tree452d363cc71b28e61c822253409e6a5f77c21de1 /data
parent8ec51653d0528b7900e0d36bb6913e8563e24eca (diff)
downloadayatana-indicator-power-7354fe608231546fa2b5271cd8777183580741f7.tar.gz
ayatana-indicator-power-7354fe608231546fa2b5271cd8777183580741f7.tar.bz2
ayatana-indicator-power-7354fe608231546fa2b5271cd8777183580741f7.zip
Partially revert 51a4186. Of course, we need the XDG autostart file. Not the upstart/xdg autostart file, though.
Diffstat (limited to 'data')
-rw-r--r--data/CMakeLists.txt20
-rw-r--r--data/ayatana-indicator-power.desktop.in9
2 files changed, 29 insertions, 0 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt
index 78072da..dc5b69f 100644
--- a/data/CMakeLists.txt
+++ b/data/CMakeLists.txt
@@ -66,6 +66,26 @@ configure_file ("${UPSTART_JOB_FILE_IN}" "${UPSTART_JOB_FILE}")
install (FILES "${UPSTART_JOB_FILE}"
DESTINATION "${UPSTART_JOB_DIR}")
+##
+## XDG Autostart File
+##
+
+# where to install
+set (XDG_AUTOSTART_DIR "/etc/xdg/autostart")
+message (STATUS "${XDG_AUTOSTART_DIR} is the DBus Service File 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}")
+
## Unity Indicator File
##
diff --git a/data/ayatana-indicator-power.desktop.in b/data/ayatana-indicator-power.desktop.in
new file mode 100644
index 0000000..14df386
--- /dev/null
+++ b/data/ayatana-indicator-power.desktop.in
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Type=Application
+Name=Ayatana Indicator Power
+Exec=@pkglibexecdir@/ayatana-indicator-power-service
+OnlyShowIn=Unity;GNOME;
+NoDisplay=true
+StartupNotify=false
+Terminal=false
+AutostartCondition=GNOME3 unless-session gnome