Skip to content

Commit

Permalink
Unity script: use result from unity_support_test to check the right C…
Browse files Browse the repository at this point in the history
…OMPIZ_CONFIG_PROFILE to use
  • Loading branch information
3v1n0 committed Jul 12, 2016
1 parent f531c90 commit 4f2d184
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/unity.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ def set_unity_env ():

os.environ['COMPIZ_CONFIG_PROFILE'] = 'ubuntu'

try:
if subprocess.call('/usr/lib/nux/unity_support_test -f'.split()) > 0:
os.environ['COMPIZ_CONFIG_PROFILE'] = 'ubuntu-lowgfx'
except:
pass

if not 'DISPLAY' in os.environ:
# take an optimistic chance and warn about it :)
print("WARNING: no DISPLAY variable set, setting it to :0")
Expand Down

0 comments on commit 4f2d184

Please sign in to comment.