By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.
Bug 3020 - It is not possible to use the QT_IM_MODULE variable simultaneously for the TQT and QT5 packages.
Summary: It is not possible to use the QT_IM_MODULE variable simultaneously for the TQ...
Status: RESOLVED FIXED
Alias: None
Product: TDE
Classification: Unclassified
Component: qt3 (show other bugs)
Version: R14.0.x [Trinity]
Hardware: Other Linux
: P5 normal
Assignee: Timothy Pearson
URL:
Depends on:
Blocks: R14.0.7
  Show dependency treegraph
 
Reported: 2019-06-14 12:42 CDT by Roman
Modified: 2019-06-20 00:59 CDT (History)
3 users (show)

See Also:
Compiler Version:
TDE Version String:
Application Version:
Application Name:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roman 2019-06-14 12:42:15 CDT
When building with -inputmethod-ext.
The QT_IM_MODULE variable in the tqt package uses different input methods with the QT5 package, which also uses this variable.
Using the fcitx package as an example, TQT uses the following options:

export XIM_PROGRAM = "fcitx"
export XIM = "fcitx"
export XIM_ARGS = "- d"
export QT_IM_MODULE = xim

QT5 does not use xim, its settings are:

export QT_IM_MODULE = fcitx

You must rename the QT_IM_MODULE variable to TQT_IM_MODULE for compatibility with QT5.

Something like that:

sed -i 's/QT_IM_MODULE/TQT_IM_MODULE/g' README.immodule
sed -i 's/QT_IM_MODULE/TQT_IM_MODULE/g' plugins/src/inputmethods/imsw-multi/qmultiinputcontext.cpp
sed -i 's/QT_IM_MODULE/TQT_IM_MODULE/g' plugins/src/inputmethods/imsw-none/qnoneinputcontextplugin.cpp

Then it works:

export XIM_PROGRAM="fcitx"
export XIM="fcitx"
export XIM_ARGS="-d"
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export TQT_IM_MODULE=xim
export XMODIFIERS=@im=fcitx
Comment 1 Michele Calgaro 2019-06-15 10:10:02 CDT
Sure, we can do this for R14.1.0 dev branch :-)
Comment 2 Roman 2019-06-15 11:09:37 CDT
Ok.
On version 14.0.6, I already did this in my gentoo overlay - TDE.
It can be connected via Layman if you add a line to /etc/layman/layman.cfg

overlays  :
    https://api.gentoo.org/overlays/repositories.xml
    https://raw.github.com/ormorph/TDE/master/layman/tde.overlay

It is a pity that in Debian and Fedora, the build is done without the -inputmethod-ext option. Cannot use fcitx without this option. In Chinese, you can not type text.

I think my arguments are obvious...
Comment 3 Michele Calgaro 2019-06-16 10:05:10 CDT
After discussed with Slavek, we have decided to do the rename in R14.0.7 too.
We will also look at whether adding the option -inputmethod-ext to Debian builds can be done in R14.0.7 or needs to go to R14.1.0
Comment 4 Michele Calgaro 2019-06-16 10:06:15 CDT
Commit 632cbaa3 in R14.1.0 and 7c8f13b0 in R14.0.7 take care of the QT_IM_* renaming.
Comment 5 Roman 2019-06-16 11:56:56 CDT
It is very good.
Thanks!
Comment 6 Michele Calgaro 2019-06-17 04:16:29 CDT
Marking the bug as resolved since the original issue with renaming has been address.
Issue https://mirror.git.trinitydesktop.org/gitea/TDE/tqt3/issues/13 keeps track on the suggestion to add -inputmethod-ext to Debian builds. This would not be done in R14.0.x anyhow, since it causes a change of ABI.
Comment 7 Roman 2019-06-20 00:59:50 CDT
Added version 14.0.x to my Gentoo overlay.
Since the links are currently not available to the submodules - .gitmodules, the submodules are added separately.
In my build the option -inputmethod-ext is added by default, fcitx works fine.

Probability of failure of applications working with fcitx after exiting fcitx. In this case, the -inputmethod-ext parameter does not affect failures. Failures can also occur without the -inputmethod-ext option when starting the fcitx process and ending it. For this, it is recommended to use fcitx in TDE autorun.
If TDE is compiled without the -inputmethod-ext option, after running fcitx, switching the keyboard layout stops working normally. This option provides compatibility between different text entry methods.