~unity-team/unity/yakkety

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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 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"

  ${CMAKE_INSTALL_FULL_LIBDIR}/unity/unity-active-plugins-safety-check
end script

respawn
exec compiz