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