我正在尝试更改 orca 设置(orca -s)上的语音人员,当我尝试单击“应用”或“确定”按钮时,控制台中会出现此错误:
Gtk-Message: 12:48:35.589: GtkDialog mapped without a transient parent. This is discouraged.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/orca/orca_gui_prefs.py", line 3054, in applyButtonClicked
self.writeUserPreferences()
File "/usr/lib/python3/dist-packages/orca/orca_gui_prefs.py", line 385, in writeUserPreferences
keyBindingsDict)
File "/usr/lib/python3/dist-packages/orca/settings_manager.py", line 485, in saveSettings
self.profileKeybindings)
File "/usr/lib/python3/dist-packages/orca/backends/gsettings_backend.py", line 232, in saveProfileSettings
self._saveVoiceSettings(general['voices'], profile)
File "/usr/lib/python3/dist-packages/orca/backends/gsettings_backend.py", line 615, in _saveVoiceSettings
elif appSpecific == False and setEstablished == True:
UnboundLocalError: local variable 'setEstablished' referenced before assignment
我正在运行 Ubuntu 18.04.1 LTS 桌面。
知道问题可能是什么吗或我可以在哪里找到配置文件来手动修改它?
谢谢,朱利安
答案1
显然问题出在以下文件中:
/usr/lib/python3/dist-packages/orca/gsettings_backend.py
我设法在 Ubuntu 19.10 中解决这个问题,将文件移动到一个隐藏文件!
sudo su
cd /usr/lib/python3/dist-packages/orca/
mv gsettings_backend.py .gsettings_backend.py
exit
reboot
系统恢复后我就可以更改设置了!