unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Ibus does not work with GTK 4 applications (?)
@ 2022-10-18 20:46 Luis Felipe
  2022-10-19  7:09 ` Liliana Marie Prikler
  0 siblings, 1 reply; 5+ messages in thread
From: Luis Felipe @ 2022-10-18 20:46 UTC (permalink / raw)
  To: help guix


[-- Attachment #1.1: Type: text/plain, Size: 1418 bytes --]

Hi,

I stumbled upon this issue when migrating an application from GTK+ to GTK 4 on a Guix System (77e768a) with ibus set up. Input methods didn't work in the GTK 4 GUI while they worked fine¹ in the GTK+ 3 GUI.

Looking at my ~/.profile file, I see that I export some variables to work around the known ibus issue (https://issues.guix.gnu.org/issue/35610):

  export GUIX_GTK2_IM_MODULE_FILE="$HOME/.guix-profile/lib/gtk-2.0/2.10.0/immodules-gtk2.cache"
  export GUIX_GTK3_IM_MODULE_FILE="$HOME/.guix-profile/lib/gtk-3.0/3.0.0/immodules-gtk3.cache"

The above is missing a corresponding variable for GTK4. But I couldn't figure it out because I can't find any a corresponding "immodules-gtk4".

I also checked GNOME applications that already migrated to GTK 4 or libadwaita, and couldn't use my input methods there either (e.g. gnome-music, gnome-calendar). Something to note about this applications is that they are pretty much unusable right now, but I don't know if that's related to the ibus thing.

Anyone knows anything about this? I wonder if there is some setting missing in Guix System regarding GTK 4 for this to work...


__________
1. I say ibus works fine in GTK+ apps, but not quite. Everytime I reboot, I have to "ibus-daemon -dr" to make it work (but that's another story, or is it?).
‾‾‾‾‾‾‾‾‾‾

---
Luis Felipe López Acevedo
https://luis-felipe.gitlab.io/

[-- Attachment #1.2: publickey - luis.felipe.la@protonmail.com - 0x12DE1598.asc --]
[-- Type: application/pgp-keys, Size: 1722 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 509 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Ibus does not work with GTK 4 applications (?)
  2022-10-18 20:46 Ibus does not work with GTK 4 applications (?) Luis Felipe
@ 2022-10-19  7:09 ` Liliana Marie Prikler
  2022-10-19 16:50   ` Luis Felipe
  0 siblings, 1 reply; 5+ messages in thread
From: Liliana Marie Prikler @ 2022-10-19  7:09 UTC (permalink / raw)
  To: Luis Felipe, help guix

Hi Luis,

Am Dienstag, dem 18.10.2022 um 20:46 +0000 schrieb Luis Felipe:
> Hi,
> 
> I stumbled upon this issue when migrating an application from GTK+ to
> GTK 4 on a Guix System (77e768a) with ibus set up. Input methods
> didn't work in the GTK 4 GUI while they worked fine¹ in the GTK+ 3
> GUI.
> 
> Looking at my ~/.profile file, I see that I export some variables to
> work around the known ibus issue
> (https://issues.guix.gnu.org/issue/35610):
> 
>   export GUIX_GTK2_IM_MODULE_FILE="$HOME/.guix-profile/lib/gtk-
> 2.0/2.10.0/immodules-gtk2.cache"
>   export GUIX_GTK3_IM_MODULE_FILE="$HOME/.guix-profile/lib/gtk-
> 3.0/3.0.0/immodules-gtk3.cache"
> 
> The above is missing a corresponding variable for GTK4. But I
> couldn't figure it out because I can't find any a corresponding
> "immodules-gtk4".
You don't need a similar variable for GTK4.  GTK4 has its own logic for
locating immodules, which works without Guix needing to patch it. 
Note, that as of [1] ibus has GTK4 support, so on this side things
should be fine.  However...

> I also checked GNOME applications that already migrated to GTK 4 or
> libadwaita, and couldn't use my input methods there either (e.g.
> gnome-music, gnome-calendar). Something to note about this
> applications is that they are pretty much unusable right now, but I
> don't know if that's related to the ibus thing.
> 
> Anyone knows anything about this? I wonder if there is some setting
> missing in Guix System regarding GTK 4 for this to work...
> __________
> 1. I say ibus works fine in GTK+ apps, but not quite. Everytime I
> reboot, I have to "ibus-daemon -dr" to make it work (but that's
> another story, or is it?).
> ‾‾‾‾‾‾‾‾‾‾
IBus is one of these annoying packages that may cause stale caches on
the user's side.  I recommend you rm -rf ~/.cache/ibus and then restart
it.

それで日本語を書きできる。

You should take this with a grain of salt however.  It might still be
that you need to restart ibus or gnome-shell from time to time because
they lost sight of each other.  I'm not sure how this relates to reboot
cycles, but it might be a clue.

Cheers

[1]
http://git.savannah.gnu.org/cgit/guix.git/commit/?id=a96ebe47b0686b5dd7ebe5fc133073abce559f4d


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Ibus does not work with GTK 4 applications (?)
  2022-10-19  7:09 ` Liliana Marie Prikler
@ 2022-10-19 16:50   ` Luis Felipe
  2022-10-20  6:23     ` Liliana Marie Prikler
  0 siblings, 1 reply; 5+ messages in thread
From: Luis Felipe @ 2022-10-19 16:50 UTC (permalink / raw)
  To: Liliana Marie Prikler; +Cc: help guix


[-- Attachment #1.1: Type: text/plain, Size: 1342 bytes --]

Hi Liliana,

On Wednesday, October 19th, 2022 at 07:09, Liliana Marie Prikler <liliana.prikler@ist.tugraz.at> wrote:

> You don't need a similar variable for GTK4. GTK4 has its own logic for
> locating immodules, which works without Guix needing to patch it.
> Note, that as of [1] ibus has GTK4 support, so on this side things
> should be fine. However...
>
> [...]
>
> IBus is one of these annoying packages that may cause stale caches on
> the user's side. I recommend you rm -rf ~/.cache/ibus and then restart
> it.

Yeah, I do this too :)


> それで日本語を書きできる。

僕もできるけど、GTK4で何もできない。

Liliana, so you can type Japanese normally in GNOME Music or any other GTK 4 app?


> You should take this with a grain of salt however. It might still be
> that you need to restart ibus or gnome-shell from time to time because
> they lost sight of each other. I'm not sure how this relates to reboot
> cycles, but it might be a clue.

Yep, at least since my last system upgrade, I have to restart ibus from time to time during my desktop session because Spanish and Japanese stop working out of the blue. I also have to restart ibus everytime after a reboot, otherwise I can't enter UNICODE with Ctrl+Shift+U nor type 日本語, although Spanish works. It's weird :)

[-- Attachment #1.2: publickey - luis.felipe.la@protonmail.com - 0x12DE1598.asc --]
[-- Type: application/pgp-keys, Size: 1722 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 509 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Ibus does not work with GTK 4 applications (?)
  2022-10-19 16:50   ` Luis Felipe
@ 2022-10-20  6:23     ` Liliana Marie Prikler
  2022-10-20 20:20       ` Luis Felipe
  0 siblings, 1 reply; 5+ messages in thread
From: Liliana Marie Prikler @ 2022-10-20  6:23 UTC (permalink / raw)
  To: Luis Felipe; +Cc: help guix

Am Mittwoch, dem 19.10.2022 um 16:50 +0000 schrieb Luis Felipe:
> > それで日本語を書きできる。
> 
> 僕もできるけど、GTK4で何もできない。
> 
> Liliana, so you can type Japanese normally in GNOME Music or any
> other GTK 4 app?
I can type normally in gnome-text-editor or in the search bar.

> > You should take this with a grain of salt however. It might still
> > be that you need to restart ibus or gnome-shell from time to time
> > because they lost sight of each other. I'm not sure how this
> > relates to reboot cycles, but it might be a clue.
> 
> Yep, at least since my last system upgrade, I have to restart ibus
> from time to time during my desktop session because Spanish and
> Japanese stop working out of the blue. I also have to restart ibus
> everytime after a reboot, otherwise I can't enter UNICODE with
> Ctrl+Shift+U nor type 日本語, although Spanish works. It's weird :)
Spanish only requires xkb, whereas C-S-u and C-S-e (now s-. by default)
require ibus.

Cheers


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Ibus does not work with GTK 4 applications (?)
  2022-10-20  6:23     ` Liliana Marie Prikler
@ 2022-10-20 20:20       ` Luis Felipe
  0 siblings, 0 replies; 5+ messages in thread
From: Luis Felipe @ 2022-10-20 20:20 UTC (permalink / raw)
  To: Liliana Marie Prikler; +Cc: help guix


[-- Attachment #1.1: Type: text/plain, Size: 1446 bytes --]

On Thursday, October 20th, 2022 at 06:23, Liliana Marie Prikler <liliana.prikler@ist.tugraz.at> wrote:

> Am Mittwoch, dem 19.10.2022 um 16:50 +0000 schrieb Luis Felipe:
> 

> > > それで日本語を書きできる。
> > 

> > 僕もできるけど、GTK4で何もできない。
> > 

> > Liliana, so you can type Japanese normally in GNOME Music or any
> > other GTK 4 app?
> 

> I can type normally in gnome-text-editor or in the search bar.

I upgraded my system to 4716cea and now I can type Spanish and Japanese normally in GTK 4 apps too (although the app I migrated refuses to accept Japanese...).


> > > You should take this with a grain of salt however. It might still
> > > be that you need to restart ibus or gnome-shell from time to time
> > > because they lost sight of each other. I'm not sure how this
> > > relates to reboot cycles, but it might be a clue.
> > 

> > Yep, at least since my last system upgrade, I have to restart ibus
> > from time to time during my desktop session because Spanish and
> > Japanese stop working out of the blue. I also have to restart ibus
> > everytime after a reboot, otherwise I can't enter UNICODE with
> > Ctrl+Shift+U nor type 日本語, although Spanish works. It's weird :)

Restarting ibus is till necessary, though.


> Spanish only requires xkb, whereas C-S-u and C-S-e (now s-. by default)
> require ibus.

Thanks, Liliana, have a nice day :)

[-- Attachment #1.2: publickey - luis.felipe.la@protonmail.com - 0x12DE1598.asc --]
[-- Type: application/pgp-keys, Size: 1722 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 509 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-10-20 20:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-18 20:46 Ibus does not work with GTK 4 applications (?) Luis Felipe
2022-10-19  7:09 ` Liliana Marie Prikler
2022-10-19 16:50   ` Luis Felipe
2022-10-20  6:23     ` Liliana Marie Prikler
2022-10-20 20:20       ` Luis Felipe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).