Page 1 of 1

Keyboard issue on CudaText QT6 flatpak

Posted: 10.04.2024 16:11
by astop34
Hello,
I enjoy CudaText for handling big files so smoothly. Thanks for developing it.

I discovered this software a few years ago and on Linux MInt 21 Cinnamon (based on Ubuntu 22.04 LTS) I have never been able to have a CudaText QT version working properly.
- With QT6 Flatpak CudaText version 1.211.3.0, linux-x86_64-qt6, fpc 3.2.2, keyboard is totally unresponsive (except a few unicode caracters I manage to generate in unclear cicumstances) although the mouse pointer works perfectly.
- I was not able to open CudaText QT5 version (cudatext-linux-qt5-amd64-1.212.1.4.tar.xz on Sourceforge) despite following the instructions provided there (BTW, FYI link to the same FAQ entry at https://cudatext.github.io/download.html currently points to a dead anchor).

No issue however using CudaText GTK version 1.212.1.4, linux-x86_64-gtk2, fpc 3.2.3 (downloaded on SourceForge).

I noticed that FAQ entry but it does not help:
- ibus is installed on host OS
- $QT_IM_MODULE & $GTK_IM_MODULE variables are empty by default, nothing changes with Cudatext if I set QT_IM_MODULE=ibus on host OS or for within Flatpak (using Flatseal to set that environment variable only for CudaText).

Is there a way for me to use QT version (although to be fair I am not clear on what it would practically differs from the GTK version)?

Re: Keyboard issue on CudaText QT6 flatpak

Posted: 11.04.2024 07:12
by main Alexey
>BTW, FYI link to the same FAQ entry at https://cudatext.github.io/download.html currently points to a dead anchor

fixed now.

>I was not able to open CudaText QT5 version (cudatext-linux-qt5-amd64-1.212.1.4.tar.xz on Sourceforge) despite following the instructions provided there

try to run './cudatext' from Terminal. what errors does it show in Terminal?

Re: Keyboard issue on CudaText QT6 flatpak

Posted: 11.04.2024 16:26
by astop34
main Alexey wrote: 11.04.2024 07:12 try to run './cudatext' from Terminal. what errors does it show in Terminal?
The following (and trying again I actually was partially successful):
./cudatext: error while loading shared libraries: libQt5Pas.so.1: cannot open shared object file: No such file or directory
Then I tried what was in the FAQ:
  1. libqt5pas1_2.15-1_amd64.deb: cannot deb package due to missing dependency ( libqt5pas1 (>=2.15) ).
  2. Code: Select all

    apt-get install libqt5pas-dev libqt5pas1
    and then ./cudatext gives:
    ./cudatext: symbol lookup error: ./cudatext: undefined symbol: QGuiApplication_setFallbackSessionManagementEnabled
  3. libqt5pas_1_2_15-1_amd64.tar.gz uncompressed with .so file in the same folder than cudatext, it actually works if I rename the file from "libQt5Pas.so.1.2.15" to "libQt5Pas.so.1" before running

    Code: Select all

    LD_LIBRARY_PATH=. ./cudatext 
I am not sure why I was unsuccessful yesterday (as I had tried renaming as well) with option 3. However, it brings me to the same level than the Flatpak version, i.e. keyboard not working (but mouser pointer does) within Cudatext's window.
Considering this FAQ entry again, I have no more results:
  • ibus is installed
  • $QT_IM_MODULE variable is empty by default, nothing changes with Cudatext if I set QT_IM_MODULE=ibus and relaunch Cudatext.

Re: Keyboard issue on CudaText QT6 flatpak

Posted: 11.04.2024 16:38
by main Alexey
1. about command 'apt-get install libqt5pas-dev libqt5pas1' did not result in good lib. Yes, you installed libqt5pas from official repo, while you must install NEWER lib from David Bannon's page
https://github.com/davidbannon/libqt5pas/releases

seems you did it after all. and app started. good.

2. about keyboard not working. I cannot reproduce it. Try to run Double Commander and use its internal text editor (assigned to F4 key, maybe you need to activate INTERNAL editor in options). it uses similar keyboard handler. does keyboard work there?