Merge lp:~3v1n0/unity/ccp-profile-unity-script-set into lp:unity

Proposed by Marco Trevisan (Treviño)
Status: Merged
Approved by: Marco Trevisan (Treviño)
Approved revision: no longer in the source branch.
Merged at revision: 4149
Proposed branch: lp:~3v1n0/unity/ccp-profile-unity-script-set
Merge into: lp:unity
Diff against target: 16 lines (+6/-0)
1 file modified
tools/unity.cmake (+6/-0)
To merge this branch: bzr merge lp:~3v1n0/unity/ccp-profile-unity-script-set
Reviewer Review Type Date Requested Status
Andrea Azzarone (community) Approve
PS Jenkins bot continuous-integration Pending
Review via email: mp+299857@code.launchpad.net

Commit message

Unity script: use result from unity_support_test to check the right COMPIZ_CONFIG_PROFILE to use

To post a comment you must log in.
Revision history for this message
Andrea Azzarone (azzar1) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tools/unity.cmake'
2--- tools/unity.cmake 2016-04-08 18:13:40 +0000
3+++ tools/unity.cmake 2016-07-12 18:44:47 +0000
4@@ -59,6 +59,12 @@
5
6 os.environ['COMPIZ_CONFIG_PROFILE'] = 'ubuntu'
7
8+ try:
9+ if subprocess.call('/usr/lib/nux/unity_support_test -f'.split()) > 0:
10+ os.environ['COMPIZ_CONFIG_PROFILE'] = 'ubuntu-lowgfx'
11+ except:
12+ pass
13+
14 if not 'DISPLAY' in os.environ:
15 # take an optimistic chance and warn about it :)
16 print("WARNING: no DISPLAY variable set, setting it to :0")