summaryrefslogtreecommitdiff
diff options
authorEleni Maria Stea <elenimaria.stea@canonical.com>2017-01-16 15:40:50 +0200
committerEleni Maria Stea <elenimaria.stea@canonical.com>2017-01-16 15:40:50 +0200
commit9d0423c303386c5135bec1c026b3b614e3dc3863 (patch)
treeb05b65d333d516e8e49849f454600882604c567d
parente51fdfa1683edd62ec00d9c168aa67f38deab030 (diff)
profile-selector must read the lowgfx gsetting before selecting profile
(bzr r4213.3.4)
-rwxr-xr-xtools/compiz-profile-selector.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/compiz-profile-selector.in b/tools/compiz-profile-selector.in
index 8041f109b..f507a43b4 100755
--- a/tools/compiz-profile-selector.in
+++ b/tools/compiz-profile-selector.in
@@ -7,6 +7,11 @@ if ! /usr/lib/nux/unity_support_test -p; then
compiz_profile="ubuntu-lowgfx"
fi
+if gsettings get com.canonical.Unity lowgfx
+then
+ compiz_profile="ubuntu-lowgfx"
+fi
+
echo "Using compiz profile '$compiz_profile'"
if [ -n "$UPSTART_SESSION" ]; then