Bug 2316572 - /etc/X11/xinit/xinput.d/fcitx5.conf only sets $QT_IM_MODULE if it finds the QT5 plugin installed, ignoring QT6
Summary: /etc/X11/xinit/xinput.d/fcitx5.conf only sets $QT_IM_MODULE if it finds the Q...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: fcitx5
Version: 40
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Qiyu Yan
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-10-04 21:35 UTC by forestbeasts@brightfur.net
Modified: 2024-10-31 01:36 UTC (History)
3 users (show)

Fixed In Version: fcitx5-5.1.11-1.fc40 fcitx5-5.1.11-1.fc41
Clone Of:
Environment:
Last Closed: 2024-10-19 01:52:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description forestbeasts@brightfur.net 2024-10-04 21:35:59 UTC
imsettings's generated xinputrc (in ~/.config/imsettings/xinputrc) only sets $QT_IM_MODULE to fcitx5 if it finds QT5 fcitx stuff installed.

After an update, we only have the QT6 plugin, not the QT5 plugin, which makes it fall back to QT_IM_MODULE=xim.

Reproducible: Always

Steps to Reproduce:
1. Use imsettings-switch to change to fcitx5.
2. Log out and log in.
Actual Results:  
Input method is still broken, QT_IM_MODULE is set to 'xim' instead of 'fcitx5'.

Expected Results:  
QT_IM_MODULE is set to fcitx5, just like GTK_IM_MODULE is.

It's probably a good idea to simply set QT_IM_MODULE unconditionally, like with GTK_IM_MODULE?

Here's the relevant lines from ~/.config/imsettings/xinputrc:
GTK_IM_MODULE=fcitx
if test -f /usr/lib/qt4/plugins/inputmethods/qtim-fcitx5.so || \
	test -f /usr/lib64/qt4/plugins/inputmethods/qtim-fcitx5.so || \
	test -f /usr/lib/qt5/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so || \
	test -f /usr/lib64/qt5/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so;
then
	QT_IM_MODULE=fcitx
else
	QT_IM_MODULE=xim
fi

Comment 1 forestbeasts@brightfur.net 2024-10-04 21:41:30 UTC
Huh, apparently this isn't generated by imsettings, it's a link to /etc/X11/xinit/xinput.d/fcitx5.conf.

So maybe the bug is in some other component?

Ah, it looks like this is from the fcitx5 package. Makes sense that it would only set it if the Qt fcitx5 plugin is installed.

Comment 2 Fedora Update System 2024-10-07 04:58:54 UTC
FEDORA-2024-d3f7b1962d (fcitx5-5.1.10-5.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-d3f7b1962d

Comment 3 Fedora Update System 2024-10-07 04:58:55 UTC
FEDORA-2024-158a2cc5aa (fcitx5-5.1.10-5.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-158a2cc5aa

Comment 4 Fedora Update System 2024-10-08 01:45:13 UTC
FEDORA-2024-d3f7b1962d has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-d3f7b1962d`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-d3f7b1962d

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

Comment 5 Fedora Update System 2024-10-08 03:07:01 UTC
FEDORA-2024-158a2cc5aa has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-158a2cc5aa`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-158a2cc5aa

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

Comment 6 Fedora Update System 2024-10-11 01:35:32 UTC
FEDORA-2024-c5ce845199 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-c5ce845199`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-c5ce845199

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

Comment 7 Fedora Update System 2024-10-11 01:44:42 UTC
FEDORA-2024-6885171b90 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-6885171b90`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-6885171b90

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

Comment 8 Fedora Update System 2024-10-19 01:52:06 UTC
FEDORA-2024-6885171b90 (fcitx5-5.1.11-1.fc40, fcitx5-anthy-5.1.5-1.fc40, and 13 more) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2024-10-23 01:57:49 UTC
FEDORA-2024-c5ce845199 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-c5ce845199`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-c5ce845199

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

Comment 10 Fedora Update System 2024-10-31 01:36:44 UTC
FEDORA-2024-c5ce845199 (fcitx5-5.1.11-1.fc41, fcitx5-anthy-5.1.5-1.fc41, and 13 more) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.