diff options
Diffstat (limited to 'debian')
| -rw-r--r-- | debian/unity7.conf | 22 | ||||
| -rw-r--r-- | debian/unity7.service | 2 |
2 files changed, 2 insertions, 22 deletions
diff --git a/debian/unity7.conf b/debian/unity7.conf index 7290000ad..2e53bf215 100644 --- a/debian/unity7.conf +++ b/debian/unity7.conf @@ -4,27 +4,7 @@ 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 script - # If gnome-session is going to start compiz, - # we don't want to be the ones doing it. - - if grep -q compiz /usr/share/gnome-session/sessions/ubuntu.session ; then - echo "GNOME Session is starting Compiz" - stop ; exit 0 - fi - - compiz_profile="ubuntu" - - if ! /usr/lib/nux/unity_support_test -p; then - compiz_profile="ubuntu-lowgfx" - fi - - echo "Using compiz profile '$compiz_profile'" - initctl set-env -g COMPIZ_CONFIG_PROFILE="$compiz_profile" - export COMPIZ_CONFIG_PROFILE="$compiz_profile" - - /usr/lib/unity/unity-active-plugins-safety-check -end script +pre-start exec /usr/lib/unity/unity-compiz-profile respawn exec compiz diff --git a/debian/unity7.service b/debian/unity7.service index a7f71b9b5..deebf9aaf 100644 --- a/debian/unity7.service +++ b/debian/unity7.service @@ -6,6 +6,6 @@ After=unity-settings-daemon.service PartOf=graphical-session.target [Service] -Environment=COMPIZ_CONFIG_PROFILE=ubuntu ExecStart=/usr/bin/compiz +ExecStart.Pre=/usr/lib/unity/unity-compiz-profile Restart=on-failure |
