[Fedora-i18n-bugs] [Bug 750484] RFE: support reloading Xmodmap

bugzilla at redhat.com bugzilla at redhat.com
Thu Nov 10 09:51:02 UTC 2011


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=750484

--- Comment #4 from Daiki Ueno <dueno at redhat.com> 2011-11-10 04:51:01 EST ---
(In reply to comment #3)
> ibus and ibus-gjs are updated:
> https://github.com/fujiwarat/ibus-gjs/commit/b1e2501cd62707c07cdf18dde6a83a59d1ab8ba4

Thanks for the quick update.  It basically works.  However, if I don't have the
gconf key /desktop/ibus/general/use-xmodmap, loading the extension fails with:

TypeError: this._config.get_value('general', 'use-xmodmap',
GLib.Variant.new_boolean(true)) is null

It seems that this is because get_value()'s 3rd arg is only available in the
Python binding and not in GI.  I added the following to ibusPanel.js to work
around this:

// patch IBus.Config.get_value to accept defval argument
IBus.Config.prototype._get_value = IBus.Config.prototype.get_value;
IBus.Config.prototype.get_value = function(section, name, defval) {
    let value = this._get_value (section, name);
    if (value == null)
        return defval;
    return value;
};

Also, is it intentional that "-" is used instead of "_" in the gconf key?

> However probably I don't recommend to use .xmodmap*. E.g. if .xmodmap replaces
> Ctrl and Caps_Lock and you switch engines by Control + Space, you will see an
> error from xmodmap command since you're pressing Control key.

Fully agreed.  FWIW, for the case described in the report (i.e. Zenkaku_Hankaku
as Escape), I requested a new XKB option:
https://bugs.freedesktop.org/show_bug.cgi?id=42734

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the i18n-bugs mailing list