Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bin/sugar-emulator
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpgritti@gmail.com>2008-10-03 00:15:25 (GMT)
committer Marco Pesenti Gritti <mpgritti@gmail.com>2008-10-03 00:15:25 (GMT)
commit61826eaf202df49747a7766a06fb8efdb3754148 (patch)
treeaac3a3097c212dbfb80b11a18b6f455fb54fff82 /bin/sugar-emulator
parentdfe0c4f46464c6e6ca04e910d7b06170159fb184 (diff)
Use a SUGAR_SCALING variable to configure scaling.
Diffstat (limited to 'bin/sugar-emulator')
-rw-r--r--bin/sugar-emulator17
1 files changed, 7 insertions, 10 deletions
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()