Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to save preferences #85

Closed
lidaobing opened this issue Jun 10, 2019 · 1 comment
Closed

failed to save preferences #85

lidaobing opened this issue Jun 10, 2019 · 1 comment
Labels

Comments

@lidaobing
Copy link
Contributor

env:
ubuntu 18.04,
ibus-sunpinyin version: 2.0.3+git20181120-1
ibus version: 1.5.17-3ubuntu4

open preference, enable "[/]" on pagedown, then Appply, following error happened

Traceback (most recent call last):
  File "/usr/share//ibus-sunpinyin/setup/main.py", line 603, in on_main_ok_clicked
    self.__write_config()
  File "/usr/share//ibus-sunpinyin/setup/main.py", line 559, in __write_config
    opt.write_config()
  File "/usr/share//ibus-sunpinyin/setup/main.py", line 118, in write_config
    self.write(v)
  File "/usr/share//ibus-sunpinyin/setup/main.py", line 83, in write
    return self.config.set_value(section, key, type(self.default)(v))
  File "/usr/lib/python3/dist-packages/gi/overrides/IBus.py", line 87, in set_value
    super(Config, self).set_value(section, name, value)
TypeError: argument value: Expected GLib.Variant, but got int
@tchaikov tchaikov added the ibus label Jun 10, 2019
@lidaobing
Copy link
Contributor Author

@tchaikov check the PR in #86 , thx

yongsun added a commit that referenced this issue Jun 10, 2019
fix #85: the config value is glib.Variant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants