Bug 2418564

Summary: ibus error with COSMIC desktop
Product: [Fedora] Fedora Reporter: mattias.eriksson
Component: ibusAssignee: fujiwara <tfujiwar>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 43CC: i18n-bugs, ryanbrue.dev, tfujiwar
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ibus-1.5.33-4.fc43 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-12-25 00:53:01 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:

Description mattias.eriksson 2025-12-03 07:00:31 UTC
COSMIC doesn't use Ibus, this causes it to show an error on login. The fix is to disable it for COSMIC-wayland sessions the same way it is disabled for KDE.

In the file /etc/X11/xinit/xinput.d/ibus.conf
Edit line to be:
IMSETTINGS_IGNORE_SESSION=KDE-wayland,COSMIC-wayland


Reproducible: Always

Steps to Reproduce:
1. Install COSMIC
2. Login

Comment 1 Ryan Brue 2025-12-03 17:20:33 UTC
Created a PR in IBus: https://src.fedoraproject.org/rpms/ibus/pull-request/42

Comment 2 fujiwara 2025-12-05 07:51:54 UTC
I'm not sure how you used imsettings but I think COSMIC Wayland does not use X11/xinit.

Did you try the IBus configuration?
https://github.com/ibus/ibus/wiki/WaylandDesktop#cosmic

Comment 3 mattias.eriksson 2025-12-05 08:14:52 UTC
No, I tried this on a fresh Fedora COSMIC install. And from what I understand from https://github.com/pop-os/cosmic-session/issues/110 , ibus is not supported by COSMIC atm. Hence, I think it should be disabled out of the box to avoid errors. A possible more desirable solution would be to fix the root cause and make sure cosmic can start ibus correctly on Fedora, but it sounds like that is a larger fix.

Comment 4 fujiwara 2025-12-05 08:22:49 UTC
> ibus is not supported by COSMIC atm

COSMIC does not support the autostart and the configuration as I liked should work.

Comment 5 fujiwara 2025-12-05 08:28:30 UTC
Ah, ok probably I understand %ibus_xinit_condition should not include the Wayland only sessions in ibus.spec.

Comment 6 fujiwara 2025-12-05 08:31:14 UTC
This is a candidate fix:

diff --git a/ibus.spec b/ibus.spec
index f78a3041..5e58999c 100644
--- a/ibus.spec
+++ b/ibus.spec
@@ -30,7 +30,7 @@
 %bcond_with    gtk4
 %endif
 
-%global ibus_xinit_condition %ibus_panel_condition
+%global ibus_xinit_condition (%pcd1 or %pcd2 or %pcd3)
 # FIXME: How to write a condition with multiple lines
 %global ibus_panel_condition (%pcd1 or %pcd2 or %pcd3 or %pcd4)
 %global pcd1 budgie-desktop or cinnamon or deepin-desktop or i3

Comment 7 Fedora Update System 2025-12-22 01:03:40 UTC
FEDORA-2025-13d6b5c38d (ibus-1.5.33-4.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-13d6b5c38d

Comment 8 Fedora Update System 2025-12-23 01:10:59 UTC
FEDORA-2025-13d6b5c38d has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-13d6b5c38d`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-13d6b5c38d

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2025-12-25 00:53:01 UTC
FEDORA-2025-13d6b5c38d (ibus-1.5.33-4.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.