traceback: Expected `string' got `bool' for key /apps/gnome-terminal/profiles/Default/cursor_blink_mode
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Terminator |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Ubuntu Jaunty, just running terminator (0.12) gives:
Traceback (most recent call last):
File "/usr/bin/
options.
File "/usr/lib/
term = (TerminatorTerm (self, self.profile, self.command))
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
val = source[keyname]
File "/usr/lib/
tmp = self.client.
glib.GError: Type mismatch: Expected `string' got `bool' for key /apps/gnome-
and it exits without doing anything.
If I grab 0.13, and patch TerminatorWindo
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
val = source[keyname]
File "/usr/lib/
tmp = self.client.
glib.GError: Type mismatch: Expected `string' got `bool' for key /apps/gnome-
but it actually puts up a window. Manual confirmation:
$ python
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gconf
>>> client = gconf.client_
>>> client.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
glib.GError: Type mismatch: Expected `string' got `bool' for key /apps/gnome-
>>> client.
False
I don't actually know where the incompatibility issue is (and it looks like cursor_blink_mode is in some kind of registry, rather than an editable dotfile that I could find.) gnome-terminal itself starts up (with a blinking cursor, which is interesting given the "False" above, but don't generally actually *use* anything but Real xterm(tm)...)
As per my gconf-editor profile and gnome-terminal- 2.{26,28} .0/src/ gnome-terminal. schemas. in , the key should be a string
<key>/schemas/ apps/gnome- terminal/ profiles/ Default/ cursor_ blink_mode< /key>
<applyto> /apps/gnome- terminal/ profiles/ Default/ cursor_ blink_mode< /applyto>
<owner> gnome-terminal< /owner>
<type>string< /type>
<default> system< /default>
<short> Whether to blink the cursor</short>
settings, or "on" or "off" to set the mode explicitly.
<schema>
<locale name="C">
<long>
The possible values are "system" to use the global cursor blinking
</long>
</locale>
</schema>
Maybe a quick fix would be to edit this key with gconf-editor and set it to "system", which is the default.
Then, some reworked on the config parsing in terminatorlib/ config. py :TerminatorConf ValuestoreGConf .__getitem_ _()
would be needed to handled exceptions.