Bug 2233527

Summary: unset GTK_IM_MODULE and QT_IM_MODULE for Plasma Wayland
Product: [Fedora] Fedora Reporter: Akira TAGOH <tagoh>
Component: ibusAssignee: fujiwara <tfujiwar>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 39CC: awilliam, extras-qa, i18n-bugs, kparal, ngompa13, petersen, shawn.p.huang, tagoh, tfujiwar
Target Milestone: ---Keywords: i18n
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard: AcceptedFreezeException
Fixed In Version: ibus-1.5.29~rc1-2.fc39 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2232064 Environment:
Last Closed: 2023-11-06 13:33:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2232064    
Bug Blocks: 2143445    

Description Akira TAGOH 2023-08-22 12:26:54 UTC
To fill the last piece of the change to accomplish this, we need to add:

IMSETTINGS_IGNORE_SESSION=KDE-wayland

to ibus.conf.

+++ This bug was initially created as a clone of Bug #2232064 +++

With ibus-1.5.29 in Fedora 29, QT_IM_MODULE and GTK_IM_MODULE should no longer be set for KDE Plasma Wayland.

Can you make such a change to imsettings, please?

Without that the behavior of ibus in Plasma Wayland is really bad.
(This change should not be made for Plasma X11.)

Reproducible: Always

Steps to Reproduce:
1. env | grep MODULE
Actual Results:  
GTK_IM_MODULE=ibus
QT_IM_MODULE=ibus

Expected Results:  
GTK_IM_MODULE and QT_IM_MODULE to be unset in Plasma Wayland

Related to https://fedoraproject.org/wiki/Changes/IBus_1.5.29

--- Additional comment from Akira TAGOH on 2023-08-15 07:44:31 UTC ---

Do we still need it for X11, right?

--- Additional comment from fujiwara on 2023-08-15 08:18:00 UTC ---

(In reply to Akira TAGOH from comment #1)
> Do we still need it for X11, right?

Yes, we do.

--- Additional comment from Akira TAGOH on 2023-08-17 14:01:21 UTC ---

One more question. This report requests to unset GTK_IM_MODULE too. does IBus 1.5.29 work without GSettings and GTK_IM_MODULE on Plasma-wayland?

--- Additional comment from fujiwara on 2023-08-18 02:20:19 UTC ---

(In reply to Akira TAGOH from comment #3)
> One more question. This report requests to unset GTK_IM_MODULE too. does
> IBus 1.5.29 work without GSettings and GTK_IM_MODULE on Plasma-wayland?

Yes, it does. Those environment variables need to be unset.

--- Additional comment from Jens Petersen on 2023-08-21 16:04:15 UTC ---

Seems imsettings-plasma was dropped from @input-methods:

https://pagure.io/fedora-comps/c/7553747fb0e4c1c6b97935dde1443e27de5fa3da?branch=main
https://pagure.io/fedora-comps/c/98e56a9cf0425b76e9a0e8237113d87ad0b4cafa?branch=main

So we may need to retest but this could this affect Plasma X11 aversely?

--- Additional comment from Neal Gompa on 2023-08-21 18:16:21 UTC ---

The way this gets set needs to be changed then to only activate when a Plasma X11 session is used. It currently does it unconditionally.

--- Additional comment from Akira TAGOH on 2023-08-22 02:33:54 UTC ---

I'm going to update imsettings for this.

--- Additional comment from Fedora Update System on 2023-08-22 12:16:41 UTC ---

FEDORA-2023-adec06104c has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2023-adec06104c

--- Additional comment from Fedora Update System on 2023-08-22 12:19:15 UTC ---

FEDORA-2023-adec06104c has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 1 Fedora Blocker Bugs Application 2023-09-13 15:20:01 UTC
Proposed as a Freeze Exception for 39-beta by Fedora user ngompa using the blocker tracking app because:

 This update includes the fix for Plasma to have ibus work properly on Wayland and X11. I couldn't figure out a blocker criterion for this, so FE it is.

Comment 2 Neal Gompa 2023-09-13 15:38:07 UTC
This bug also needs https://pagure.io/fedora-comps/pull-request/880 merged for it to be effective.

Comment 3 Adam Williamson 2023-09-13 19:18:29 UTC
The criterion for this would probably be Final https://fedoraproject.org/wiki/Fedora_39_Final_Release_Criteria#Keyboard_layout_configuration , which we read as also applying to input methods. We can propose this as a Final blocker if necessary, I guess.

Comment 4 Adam Williamson 2023-09-14 06:42:04 UTC
+3 in https://pagure.io/fedora-qa/blocker-review/issue/1307 , marking accepted FE.

Comment 5 Adam Williamson 2023-09-14 18:25:37 UTC
We signed off Beta candidate 1.1 just now, so unfortunately this won't make Beta. Let's CommonBugs it to explain what to do and what not to do.

Comment 6 Kamil Páral 2023-09-15 11:41:26 UTC
Akira, do I understand correctly that this should basically solve bug 2226646 , as described in https://discussion.fedoraproject.org/t/on-screen-keyboard-fails-to-open-automatically-in-kde-on-a-touch-device/85479 ?

Comment 7 Akira TAGOH 2023-09-19 05:46:00 UTC
(In reply to Kamil Páral from comment #6)
> Akira, do I understand correctly that this should basically solve bug
> 2226646 , as described in
> https://discussion.fedoraproject.org/t/on-screen-keyboard-fails-to-open-
> automatically-in-kde-on-a-touch-device/85479 ?

We still need a few change on maliit-keyboard too. will update a proposed update for conf file.

Comment 8 Kamil Páral 2023-11-06 12:16:46 UTC
Folks, this is proposed for Common Issues here:
https://discussion.fedoraproject.org/t/new-proposed-common-issue-found-unset-gtk-im-module-and-qt-im-module-for-plasma-wayland/89891

I'm not sure what the current state is, and I'm also not able to document it. If this is now resolved, we can close it or at least de-nominate it from Common Issues. If this is not resolved, and still a high-impact issue, I'd appreciate if somebody could create that Common Issue description.

Comment 9 fujiwara 2023-11-06 13:33:23 UTC
Sorry, I forgot to add this bug to bodhi.
https://bodhi.fedoraproject.org/updates/FEDORA-2023-0aec0b18ac

Comment 10 Kamil Páral 2023-11-06 15:04:16 UTC
Thanks for update, removing CommonBugs.