Remove useless feature to override settings yet another way. Remove duplication of hardcoding in TerminatorTerm.defaults{} but I think this structure mostly needs to go away. gconf schemae ought to save us
This commit is contained in:
parent
2001d432b6
commit
ceb0582fd9
10
terminator
10
terminator
@ -61,18 +61,14 @@ class TerminatorTerm:
|
||||
'link_hostchars' : '-A-Za-z0-9',
|
||||
'link_userchars' : '-A-Za-z0-9',
|
||||
'link_passchars' : '-A-Za-z0-9,?;.:/!%$^*&~"#\'',
|
||||
'palette' : '/apps/gnome-terminal/profiles/Default/palette',
|
||||
'_palette' : '%s/palette',
|
||||
}
|
||||
|
||||
matches = {}
|
||||
|
||||
def __init__ (self, term, profile, settings = {}):
|
||||
def __init__ (self, term, profile):
|
||||
self.defaults['link_user'] = self.defaults['_link_user']%(self.defaults['link_userchars'], self.defaults['link_passchars'])
|
||||
|
||||
# Set up any overridden settings
|
||||
for key in settings.keys ():
|
||||
defaults[key] = settings[key]
|
||||
|
||||
self.term = term
|
||||
self.gconf_client = gconf.client_get_default ()
|
||||
|
||||
@ -87,6 +83,8 @@ class TerminatorTerm:
|
||||
# FIXME: This absolutely should not be an exit, the terminal should fail to spawn. If they all fail, it should exit from the mainloop or something.
|
||||
sys.exit (2)
|
||||
|
||||
self.defaults['palette'] = self.defaults['_palette']%(self.profile)
|
||||
|
||||
self.gconf_client.add_dir (self.profile, gconf.CLIENT_PRELOAD_RECURSIVE)
|
||||
self.gconf_client.add_dir ('/apps/metacity/general', gconf.CLIENT_PRELOAD_RECURSIVE)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user