https://bugs.kde.org/show_bug.cgi?id=417035

            Bug ID: 417035
           Summary: Maliit extension for KDE Flatpak Runtime
           Product: Qt/KDE Flatpak Runtime
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: aleix...@kde.org
          Reporter: rinigus....@gmail.com
  Target Milestone: ---

With this issue, I am asking you to add a keyboard extension for use with KDE
Flatpak runtime on Sailfish OS. Sailfish is using Maliit service for keyboard
input. This works via the service provided by OS leading to opening of a
keyboard over an app and Qt input plugin communicating with the service and
filling in app fields as required.

In context of Flatpak, we have few complications. In particular, plugin inside
the container has no idea regarding device orientation nor whether the app is
minimized or active. As we also have older Wayland compositor and some special
handling of minimizing of the windows, I wrote a small wrapper app with Wayland
compositor to run all Flatpak apps inside it. 

Next, I have written a small Maliit plugin which is communicating with the
Flatpak wrapper app and Maliit service provided by OS. The communication is via
DBus with the service-plugin via session bus and wrapper-plugin via p2p
communication (address forwarded via environment). Permissions are given for
known session bus talk name.

Plugin itself is a single file that has to be installed along other similar
plugins at platforminputcontexts subfolder.

As far as I understand, all we have to do in org.kde.Sdk.json is to add
declaration for the plugin as an extension and set it to no-autodownload. Then
we will have to generate the extension and provide it somehow...

Currently I am using a hack to smuggle it in and would prefer to avoid that.

Plugin Flatpak packaging script (meta-script as it is used to generate several
versions) is at
https://github.com/sailfishos-flatpak/pkg-flatpak-maliit-plugin/blob/master/org.sailfish.maliit.qt.yaml

Plugin code is at
https://github.com/sailfishos-flatpak/maliit-framework/tree/flatpak/input-context

I hope that addition of such plugin will be OK with you.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to