Package: maliit-keyboard
Version: 2.3.1-6
Severity: normal
X-Debbugs-Cc: ma...@april.org

Dear Maintainer,

   * What led up to the situation?

I'm trying to use maliit-keyboard on a laptop with a touchscreen using

        sudo apt install maliit-keyboard

maliit keyboard can be enabled in the KDE system settings.
Then the keyboard correclty shows when touching a text area on the screen.
But there is no way to configure in the KDE system settings panel.
So I tried to change the settings dconf-editor or gsettings.
I can change the enabled languages, but I can't switch to a dark theme.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

1) I tried to change the following commands from 
(https://blog.martin-graesslin.com/blog/2021/03/using-maliit-keyboard-in-a-plasma-wayland-session/):

        gsettings set org.maliit.keyboard.maliit enabled-languages "['fr', 
'ru', 'emoji']"
        gsettings set org.maliit.keyboard.maliit theme BreezeDark

In dconf-editor, we can tune these parameters, but there is no way to list 
valid theme values.
The default value of org.maliit.keyboard.maliit theme is "Ambiance" but I don't 
undernstand why it is a valid theme value. 

2) I also tried this 
(https://github.com/maliit/keyboard/issues/174#issuecomment-1307825321)
supposed to map the maliit keyboard theme to the current KDE theme.

As root:
        echo "export QT_QUICK_CONTROLS_STYLE=org.kde.desktop" > 
/usr/local/bin/maliit-keyboard
        echo "/usr/bin/maliit-keyboard" >> /usr/local/bin/maliit-keyboard

As user:
        cp /usr/share/applications/com.github.maliit.keyboard.desktop 
$HOME/.local/share/applications
        sed -i 's%Exec=maliit-keyboard%Exec=/usr/local/bin/maliit-keyboard%' 
$HOME/.local/share/applications/com.github.maliit.keyboard.desktop

Then I disabled/re-enagle maliit-keyboard in KDE system settings but the 
keyboard won't show until I remove 
$HOME/.local/share/applications/com.github.maliit.keyboard.desktop.
Running from the terminal gives the following outputs:

(mando@cenedra) (~) $ /usr/bin/maliit-keyboard 
wordengine.cpp plugin 
"/usr/lib/x86_64-linux-gnu/maliit/keyboard2/languages/en/libenplugin.so" loaded
inputmethod_p.h registerActiveLanguage(): activeLanguage is: "fr"
in inputMethod.cpp setActiveLanguage() activeLanguage is: "fr"
wordengine.cpp plugin 
"/usr/lib/x86_64-linux-gnu/maliit/keyboard2/languages/fr/libfrplugin.so" loaded
DB path: /usr/lib/x86_64-linux-gnu/maliit/keyboard2/languages/fr/database_fr.db
spellechecker.cpp in setLanguage() lang= "fr" dictPath= "/usr/share/hunspell"
inputMethod::reset()
in clear preedit.. clearing word engine
spellechecker.cpp in setLanguage() aff_file= "/usr/share/hunspell/fr.aff" 
dic_file= "/usr/share/hunspell/fr.dic" user dictionary= 
"/home/mando/.local/share/maliit-keyboard/fr_userDictionary.dic"
^C

(mando@cenedra) (~) $ /usr/local/bin/maliit-keyboard 
wordengine.cpp plugin 
"/usr/lib/x86_64-linux-gnu/maliit/keyboard2/languages/en/libenplugin.so" loaded
inputmethod_p.h registerActiveLanguage(): activeLanguage is: "fr"
in inputMethod.cpp setActiveLanguage() activeLanguage is: "fr"
wordengine.cpp plugin 
"/usr/lib/x86_64-linux-gnu/maliit/keyboard2/languages/fr/libfrplugin.so" loaded
DB path: /usr/lib/x86_64-linux-gnu/maliit/keyboard2/languages/fr/database_fr.db
spellechecker.cpp in setLanguage() lang= "fr" dictPath= "/usr/share/hunspell"
inputMethod::reset()
in clear preedit.. clearing word engine
spellechecker.cpp in setLanguage() aff_file= "/usr/share/hunspell/fr.aff" 
dic_file= "/usr/share/hunspell/fr.dic" user dictionary= 
"/home/mando/.local/share/maliit-keyboard/fr_userDictionary.dic"
file:///usr/lib/x86_64-linux-gnu/maliit/keyboard2/qml/keys/LanguageMenu.qml:33:19:
 QML MenuItem: Binding loop detected for property "implicitWidth"
file:///usr/lib/x86_64-linux-gnu/maliit/keyboard2/qml/keys/LanguageMenu.qml:33:19:
 QML MenuItem: Binding loop detected for property "implicitWidth"

3) I tried to change the settings through maliit-keyboard itself (long tap on 
the emoticon key, then tap Settings). But nothing happens.

   * What was the outcome of this action?

The keyboard has the right languages, but still uses a light theme.

   * What outcome did you expect instead?

The keyboard theme should become dark, as shown here 
(https://blog.martin-graesslin.com/blog/2021/03/using-maliit-keyboard-in-a-plasma-wayland-session/)
and customizable through maliit/KDE settings.

By default, the keyboard should match the KDE theme (see (2)).

Ideally, KDE systemsettings should allow to change the theme/langauges/... 
through a combo boxes.

Best regards

*** End of the template - remove these template lines ***


-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.9.9-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages maliit-keyboard depends on:
ii  dconf-gsettings-backend [gsettings-backend]  0.40.0-4+b2
ii  fonts-noto                                   20201225-2
ii  fonts-noto-color-emoji                       2.042-1
ii  libc6                                        2.38-14
ii  libchewing3                                  0.8.5-1
ii  libgcc-s1                                    14-20240330-1
ii  libglib2.0-0t64                              2.80.4-1
ii  libhunspell-1.7-0                            1.7.2+really1.7.2-10+b2
ii  libmaliit-plugins2                           2.3.0-4+b2
ii  libpinyin15                                  2.8.1-1+b1
ii  libpresage1v5                                0.9.1-2.6+b1
ii  libqt5core5t64                               5.15.13+dfsg-3
ii  libqt5feedback5                              5.0~git20180903.a14bd0b-6
ii  libqt5gui5t64                                5.15.13+dfsg-3
ii  libqt5multimedia5                            5.15.13-2
ii  libqt5qml5                                   5.15.13+dfsg-2
ii  libqt5quick5                                 5.15.13+dfsg-2
ii  libqt5quickcontrols2-5                       5.15.13+dfsg-2
ii  libstdc++6                                   14-20240330-1
ii  maliit-framework                             2.3.0-4+b2
ii  qml-module-qtgraphicaleffects                5.15.13-2
ii  qml-module-qtquick-controls2                 5.15.13+dfsg-2
ii  qml-module-qtquick-layouts                   5.15.13+dfsg-2
ii  qml-module-qtquick2                          5.15.13+dfsg-2

Versions of packages maliit-keyboard recommends:
ii  hunspell-de-de  20161207-12
ii  hunspell-en-us  1:2020.12.07-2
ii  hunspell-fr     1:7.0-1
ii  hunspell-nl     2:2.20.19-2

maliit-keyboard suggests no packages.

-- no debconf information

Reply via email to