15
15
compiz_profile="ubuntu"
16
16
settings_profile="unity"
18
19
if ! /usr/lib/nux/unity_support_test -p; then
19
settings_profile="unity-lowgfx"
22
if [ "$(gsettings get com.canonical.Unity lowgfx)" == "true" ]; then
23
settings_profile="unity-lowgfx"
23
if [ "$UNITY_LOW_GFX_MODE" != 0 ]; then
24
if [ "$supports_3d" == false ] ||
25
[ "$(gsettings get com.canonical.Unity lowgfx)" == "true" ]; then
26
settings_profile="unity-lowgfx"
26
30
echo "Using compiz profile '$compiz_profile:$settings_profile'"
28
32
if [ -n "$UPSTART_SESSION" ]; then
29
33
initctl set-env -g COMPIZ_CONFIG_PROFILE="$compiz_profile"
34
initctl set-env -g UNITY_HAS_3D_SUPPORT="$supports_3d"
35
initctl set-env -g UNITY_DEFAULT_PROFILE="$settings_profile"
31
37
systemctl --user set-environment COMPIZ_CONFIG_PROFILE="$compiz_profile"
38
systemctl --user set-environment UNITY_HAS_3D_SUPPORT="$supports_3d"
39
systemctl --user set-environment UNITY_DEFAULT_PROFILE="$settings_profile"
34
42
dbus-update-activation-environment --verbose COMPIZ_CONFIG_PROFILE="$compiz_profile"
43
dbus-update-activation-environment --verbose UNITY_HAS_3D_SUPPORT="$supports_3d"
44
dbus-update-activation-environment --verbose UNITY_DEFAULT_PROFILE="$settings_profile"
36
46
export COMPIZ_CONFIG_PROFILE="$compiz_profile"
47
export UNITY_HAS_3D_SUPPORT="$supports_3d"
48
export UNITY_DEFAULT_PROFILE="$settings_profile"
38
50
@UNITY_LIBDIR@/compiz-config-profile-setter $settings_profile
39
51
@UNITY_LIBDIR@/unity-active-plugins-safety-check