启动过程中,解析alleyoop的gconf默认数据出错

Bug #1195550 reported by Dig Ge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Tweak
Fix Released
Low
Ding Zhou

Bug Description

[GconfSetting][ERROR] Exception (invalid syntax (<string>, line 1)) while processing override (gconfsettings.py:52)
命令行报这样的错。

调查发现是在解析alleyoop的gconf default文件时eval出错了
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/ubuntutweak/settings/gconfsettings.py", line 48, in load_override
    value = eval(value)
  File "<string>", line 1
    "gnome-text-editor --new-window +${lineno} "${filename}""

/usr/share/gconf/defaults/10_alleyoop 文件只有一行内容:
/apps/alleyoop/editor "gnome-text-editor --new-window +${lineno} "${filename}""

因为这个文件序号比较小,所以load_override()后面的根本没解析就直接从exception跳出去了
不确定这里解析它是要做什么的。要不然就自己动手了。

Environment:
Ubuntu: 12.04.2
ubuntu tweak: 0.8.5-1~precise2
alleyoop: 0.9.7-2

Ding Zhou (tualatrix)
Changed in ubuntu-tweak:
milestone: none → 0.8.6
assignee: nobody → Ding Zhou (tualatrix)
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Ding Zhou (tualatrix) wrote :

谢谢报告。

这个override是载入gconf的默认设置用的,现在看来我之前的异常捕获太早了,应该给每个文件exception一下,而不是一次大的。现在应该可以了。

Changed in ubuntu-tweak:
status: Confirmed → Fix Committed
Ding Zhou (tualatrix)
Changed in ubuntu-tweak:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.