Odp: Re: Snap kate package fails to start in wayland session

Marek Byk minimarek at o2.pl
Sun Feb 4 11:24:37 GMT 2024


Thank you for the suggestion.   Unfortunately, but this commit doesn't solve my problem. I'm using the latest version of the package (kate 23.08.4), which includes this commit.   libqt5waylandclient5 provides the QtWayland client library, and libqt5waylandcompositor5 the QtWayland compositor library. The error indicates that the QtWayland platform plugin is missing.   Here is the result of running kate with QT_DEBUG_PLUGINS=1:  pastebin.com https://pastebin.com/QeZMmuap   On startup, kate searches for the Qt platform Wayland plugin in /snap/kate/171/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms. It's not found and the application cannot be launched (This application failed to start because no Qt platform plugin could be initialized.).   List of files in the platform plugin directory of kate snap (/snap/kate/171/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms):  pastebin.com https://pastebin.com/qr4b39Rs   List of files in the platform plugin directory of my system with qtwayland5 instaled (/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms):  pastebin.com https://pastebin.com/JfksqM3N   When I set QT_PLUGIN_PATH=/usr/lib/x86_64-linux-gnu/qt5/plugins, kate runs correctly. qtwayland5 provides the missing files ( packages.ubuntu.com https://packages.ubuntu.com/mantic/arm64/qtwayland5/filelist ). Therefore, I think qtwayland5 should be added to the snap kate package.  Finally, information about my system:  Ubuntu 23.10  Gnome 45.2 with Wayland session  Snap 2.61.1   Greetings  Marek.   Dnia 03 lutego 2024 17:30 christoph at cullmann.io napisał(a):  On 2024-02-03 01:00, Marek Byk wrote:  Hi,   I use kate from snap. Unfortunately, it cannot be run in a wayland  session:   kate --version   qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""   When I installed the qt5-wayland package and set  QT_PLUGIN_PATH=/usr/lib/x86_64-linux-gnu/qt5/plugins, kate started  correctly in the wayland session. Of course, this is a temporary  solution, for the purpose of verifying the problem.   It seems to me that in the snapcraft.yaml file in the stage-packages  should be added qtwayland5 (reference:  forum.snapcraft.io https://forum.snapcraft.io/t/problem-launching-qt-snaps-in-wayland/7055).   Hi,   I think that was fixed with:   invent.kde.org https://invent.kde.org/utilities/kate/-/commit/ea465e32a5c5ef429165ef124002e410825ad7b9   Greetings  Christoph    Regards, Marek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20240204/321d38a1/attachment-0001.htm>


More information about the KWrite-Devel mailing list