From 61826eaf202df49747a7766a06fb8efdb3754148 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Fri, 03 Oct 2008 00:15:25 +0000 Subject: Use a SUGAR_SCALING variable to configure scaling. --- (limited to 'bin/sugar-emulator') diff --git a/bin/sugar-emulator b/bin/sugar-emulator index 36958db..f6cafd6 100644 --- a/bin/sugar-emulator +++ b/bin/sugar-emulator @@ -88,27 +88,24 @@ def main(): """Script-level operations""" parser = OptionParser() - parser.add_option('-x', '--xo-style', dest='xo_style', - action='store_true', help='use the XO style') + parser.add_option('-d', '--dpi', dest='dpi', help='Emulator dpi') + parser.add_option('-s', '--scaling', dest='scaling', help='Sugar scaling') (options, args) = parser.parse_args() _setup_env() - if options.xo_style: - _start_xephyr(dpi=201) + if options.dpi: + _start_xephyr(dpi=options.dpi) else: _start_xephyr() - if options.xo_style: - os.environ['SUGAR_THEME'] = 'sugar-xo' - os.environ['SUGAR_XO_STYLE'] = 'yes' - else: - os.environ['SUGAR_XO_STYLE'] = 'no' + if options.scaling: + os.environ['SUGAR_SCALING'] = options.scaling command = ['dbus-launch', 'dbus-launch', '--exit-with-session'] if not args: - command.append('sugar-shell') + command.append('sugar') else: _start_matchbox() -- cgit v0.9.1