2 # vi: set syntax=python : */
7 #rox.setup_app_options('Dome')
9 from rox
.Menu
import Menu
, set_save_name
15 # Ugly hack to stop wierd chars appearing...
17 #xml.dom.html.HTML_CHARACTER_ENTITIES = {}
20 from os
.path
import dirname
22 app_dir
= dirname(sys
.argv
[0])
24 from rox
import g
, mime
25 from rox
.options
import Option
26 from Window
import Window
27 rox
.setup_app_options('Dome')
29 default_font
= Option('default_font', 'sans 12')
31 # All options must be registered by the time we get here
32 rox
.app_options
.notify()
34 #sys.argv.append('--disable-crash-dialog')
38 mime
.install_mime_info('Dome')
41 while len(sys
.argv
) > 1 and sys
.argv
[1].startswith('--'):
42 option
= sys
.argv
[1][2:]
45 mono
= 1 # Black & White
49 raise Exception("Unknown option", option
)
54 del sys
.argv
[1:] # GnomeCanvas can't cope with -
55 win
= apply(Window
, files
)