terminatorrc isn't created by default, so it can be used to override the gnome-terminal profile as well as providing gconf independence for non-gnome users
This commit is contained in:
parent
201e48c9be
commit
4b6094fbe5
|
@ -145,7 +145,7 @@ class TerminatorTerm:
|
||||||
if self.profile:
|
if self.profile:
|
||||||
self.gconf_client.add_dir (self.profile, gconf.CLIENT_PRELOAD_RECURSIVE)
|
self.gconf_client.add_dir (self.profile, gconf.CLIENT_PRELOAD_RECURSIVE)
|
||||||
self.gconf_client.notify_add (self.profile, self.on_gconf_notification)
|
self.gconf_client.notify_add (self.profile, self.on_gconf_notification)
|
||||||
else:
|
|
||||||
if os.path.exists (pwd.getpwuid(os.getuid ())[5] + "/.terminatorrc"):
|
if os.path.exists (pwd.getpwuid(os.getuid ())[5] + "/.terminatorrc"):
|
||||||
f = open (pwd.getpwuid (os.getuid ())[5] + "/.terminatorrc")
|
f = open (pwd.getpwuid (os.getuid ())[5] + "/.terminatorrc")
|
||||||
config = f.readlines ()
|
config = f.readlines ()
|
||||||
|
@ -153,11 +153,12 @@ class TerminatorTerm:
|
||||||
|
|
||||||
for line in config:
|
for line in config:
|
||||||
try:
|
try:
|
||||||
line = line.split("#")[0]
|
|
||||||
line = line.strip ()
|
line = line.strip ()
|
||||||
if line:
|
if line[0] == '#':
|
||||||
|
pass
|
||||||
|
elif line:
|
||||||
(key,value) = line.split ("=")
|
(key,value) = line.split ("=")
|
||||||
print >> sys.stderr, _('''Overriding setting '%s' from default value '%s' to: '%s' ''')%(key.strip (), self.defaults[key.strip ()], value.strip ())
|
print >> sys.stderr, _('''Overriding setting '%s' from value '%s' to: '%s' ''')%(key.strip (), self.defaults[key.strip ()], value.strip ())
|
||||||
self.defaults[key.strip ()] = value.strip ()
|
self.defaults[key.strip ()] = value.strip ()
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue