diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2016-08-31 15:54:34 +0200 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2016-08-31 15:54:34 +0200 |
| commit | 7997fa4290cdc551dfc7c07cfe2186f294269bf8 (patch) | |
| tree | 917de7359e7d178f97036aeb9215317b493c042a /data | |
| parent | d709315c38a64df6af86cc3cd6aa9f65fa749957 (diff) | |
unity7{.conf,.service}.in: move to data subfolder and use proper libdir path
(bzr r4153.9.31)
Diffstat (limited to 'data')
| -rw-r--r-- | data/CMakeLists.txt | 12 | ||||
| -rw-r--r-- | data/unity7.conf.in | 10 | ||||
| -rw-r--r-- | data/unity7.override | 1 | ||||
| -rw-r--r-- | data/unity7.service.in | 11 |
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 |
