Bug 6629 - GTT crashes on missing keys
Summary: GTT crashes on missing keys
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: GNOME maintainers
QA Contact:
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-06-30 00:17 CEST by Juan Magallon
Modified: 2016-09-19 09:54 CEST (History)
1 user (show)

See Also:
Source RPM: gnome-tweak-tool-3.4.0.1-1.mga3.src.rpm
CVE:
Status comment:


Attachments

Description Juan Magallon 2012-06-30 00:17:30 CEST
After a recent update to nautilus, GTT says:

werewolf:~> gnome-tweak-tool
Traceback (most recent call last):
  File "/usr/bin/gnome-tweak-tool", line 76, in <module>
    MainWindow()
  File "/usr/lib/python2.7/site-packages/gtweak/mainwindow.py", line 44, in __init__
    model)
  File "/usr/lib/python2.7/site-packages/gtweak/tweakview.py", line 40, in __init__
    self._model.load_tweaks()
  File "/usr/lib/python2.7/site-packages/gtweak/tweakmodel.py", line 135, in load_tweaks
    mods = __import__("gtweak.tweaks", globals(), locals(), tweak_files, 0)
  File "/usr/lib/python2.7/site-packages/gtweak/tweaks/tweak_nautilus.py", line 48, in <module>
    GSettingsSwitchTweak("org.gnome.nautilus.desktop", "computer-icon-visible", schema_filename="org.gnome.nautilus.gschema.xml",group_name=TWEAK_GROUP_DESKTOP),
  File "/usr/lib/python2.7/site-packages/gtweak/widgets.py", line 116, in __init__
    _GSettingsTweak.__init__(self, schema_name, key_name, **options)
  File "/usr/lib/python2.7/site-packages/gtweak/widgets.py", line 105, in __init__
    options.get("summary",self.settings.schema_get_summary(key_name)),
  File "/usr/lib/python2.7/site-packages/gtweak/gsettings.py", line 122, in schema_get_summary
    return self._schema._schema[key]["summary"]
KeyError: 'computer-icon-visible'

A workaround is to comment the key on the schema, but a better solution looks like this patch:

http://git.gnome.org/browse/gnome-tweak-tool/commit/?id=a83ddd89364b84d34d70cdfefe694705b0098b2b

Perhaps you could update to latest git till a new version is released.
Comment 1 Sander Lepik 2012-06-30 07:11:37 CEST
Olav, something for you?

CC: (none) => sander.lepik
Assignee: bugsquad => olav

Manuel Hiebel 2014-03-28 19:06:43 CET

Keywords: (none) => PATCH

Comment 2 Olav Vitters 2016-09-19 09:54:04 CEST
I missed this. This happens easily if gsettings-desktop-schemas removed a key etc. Likely fixed by now.

Status: NEW => RESOLVED
Resolution: (none) => OLD
Assignee: olav => gnome


Note You need to log in before you can comment on or make changes to this bug.