On Sat, Mar 27, 2021 at 4:40 PM Ed Greshko <ed.greshko(a)greshko.com> wrote:
On 28/03/2021 02:03, Robert G. (Doc) Savage via users wrote:
> On Sat, 2021-03-27 at 07:19 +0800, Ed Greshko wrote:
>> On 26/03/2021 16:55, Robert G. (Doc) Savage via users wrote:
>>> Using Fedora 33 with MATE desktop...
>>>
>>> I'm working with the developer of a very handy RPN calculator app called
rpCalc to figure out why it doesn't work for my regular user 'doc' but works
perfectly for a newly created user 'test'. The developer strongly suspects a Qt5
setting. We have narrowed our search to my local environment:
>>>
>>> $ env | grep QT
>>> QT_IM_MODULE=xim
>>> QT_AUTO_SCREEN_SCALE_FACTOR=0
>>> QT_SCALE_FACTOR=2
>>>
>>> The developer believes the first (set to =xim) is causing rpCalc not to
function at all, and that the next two cause the font sizes on the calculator buttons to
be oversize.
>>>
>>> I'm looking for one or more config files -- probably in my home
directory -- that set these variables. Talk about looking for a needle in a haystack.
>>>
>>> Is there a cat | grep command (or equiv) that can recursively look for
"QT" in all files in my home directory -- including hidden files? It would have
to be able to output the full path to any files in which "QT" is found.
Unfortunately cat does not support recursive searches.
>>>
>>
>> I don't know about the other 2, but QT_IM_MODULE is related to "Input
Method".
>>
>> The "best" way to change that is to install and run
"im-chooser". I've never tried to us "X compose table" (xim) as
my
>> input method. I use ibus.
>
> Ed,
>
> To work correctly, the rpcalc app also needs to have QT_IM_MODULE=ibus. I don't
know what sets it to xim, but whatever sets it to xim is tenacious. I've tried both
"im-chooser" and a simple manual change:
>
> $ set QT_IM_MODULE=ibus
> $ export QT_IM_MODULE
> $ env QT_IM_MODULE
> QT_IM_MODULE=xim
That series of commands don't seem right to me.
>
> If I create a new user "test" and log on with that userID, the input
method defaults to ibus and rpcalc works. So the brute force method to correct my problem
might be to totally blow away and recreate my current user account. That would be very
destructive.
>
Did you run im-chooser to change your input method and then logout/login?
I would check in the files in /etc/profile.d that is where most
applications put their default settings.
grep has a recursive option, but be careful with it as it will follow
symbolic links and if done anyplace with recursive symbolic links
(/proc, /sys, and probably others) it will get into a loop will search
forever.