summaryrefslogtreecommitdiff
path: root/data
diff options
Diffstat (limited to 'data')
-rw-r--r--data/CMakeLists.txt12
-rw-r--r--data/unity7.conf.in10
-rw-r--r--data/unity7.override1
-rw-r--r--data/unity7.service.in11
4 files changed, 33 insertions, 1 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt
index 321867659..7ee17122f 100644
--- a/data/CMakeLists.txt
+++ b/data/CMakeLists.txt
@@ -1 +1,11 @@
-add_subdirectory(pam) \ No newline at end of file
+add_subdirectory(pam)
+
+# Upstart
+configure_file(unity7.conf.in ${CMAKE_CURRENT_BINARY_DIR}/unity7.conf @ONLY)
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/unity7.conf DESTINATION ${CMAKE_INSTALL_DATADIR}/upstart/sessions)
+
+# Systemd
+configure_file(unity7.service.in ${CMAKE_CURRENT_BINARY_DIR}/unity7.service @ONLY)
+pkg_get_variable(SYSTEMD_USER_DIR systemd systemduserunitdir)
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/unity7.service DESTINATION ${SYSTEMD_USER_DIR})
+install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/unity7.override DESTINATION ${CMAKE_INSTALL_DATADIR}/upstart/systemd-session/upstart)
diff --git a/data/unity7.conf.in b/data/unity7.conf.in
new file mode 100644
index 000000000..1ea63959f
--- /dev/null
+++ b/data/unity7.conf.in
@@ -0,0 +1,10 @@
+description "Unity Shell v7"
+author "Ted Gould <ted@ubuntu.com>, Marco Trevisan <marco@ubuntu.com>"
+
+start on xsession SESSION=ubuntu and started unity-settings-daemon
+stop on desktop-end
+
+pre-start exec @UNITY_LIBDIR@/unity-compiz-profile-select
+
+respawn
+exec compiz
diff --git a/data/unity7.override b/data/unity7.override
new file mode 100644
index 000000000..2905494b6
--- /dev/null
+++ b/data/unity7.override
@@ -0,0 +1 @@
+manual
diff --git a/data/unity7.service.in b/data/unity7.service.in
new file mode 100644
index 000000000..227c8d0f7
--- /dev/null
+++ b/data/unity7.service.in
@@ -0,0 +1,11 @@
+[Unit]
+Description=Unity Shell v7
+Requires=unity-settings-daemon.service unity-panel-service.service bamfdaemon.service
+Wants=unity-gtk-module.service
+After=unity-settings-daemon.service
+PartOf=graphical-session.target
+
+[Service]
+ExecStart=/usr/bin/compiz
+ExecStartPre=@UNITYLIBDIR@/unity-compiz-profile-select
+Restart=on-failure