set hildon mode from env variable too

This commit is contained in:
Christophe Benz 2010-11-03 19:48:15 +01:00 committed by Romain Bignon
commit cce2ca9965

View file

@ -67,8 +67,9 @@ if '--xdg' in args and '--no-xdg' in args:
print '--xdg and --no-xdg options are incompatible' print '--xdg and --no-xdg options are incompatible'
sys.exit(1) sys.exit(1)
if '--hildon' in args: if '--hildon' in args or os.environ.get('HILDON') == 'true':
options.hildon = True options.hildon = True
if '--hildon' in args:
args.remove('--hildon') args.remove('--hildon')
elif '--no-hildon' in args: elif '--no-hildon' in args:
options.hildon = False options.hildon = False