Want someone to check my package plasma-keyboard

Olivier Trichet nive at nivalis.org
Mon Apr 6 18:29:44 BST 2026


Salut


> Btw. this is not everything, the far more biggest issue, is that we cannot
> scan the resource files attached in libs and executables, where those qml
> files are shipped within the binary package. Patches to solve this are very
> welcome, as I don't know how to extract the resources from a binary.


The attached script should decode enough information from embedded compiled QML to 
extract imports from executable and library


If you don't want to depends on python3-elftools, you can replace the usage of 
find_in_elf() with find_in_file() in method scan_binary_for_imports().


$ ./qmlbytecode.py /usr/bin/kdeconnect-sms
('org.kde.people', None)
('QtQuick', None)
('QtCore', None)
('QtQuick.Dialogs', None)
('org.kde.config', None)
('org.kde.kirigami.delegates', None)
('org.kde.kirigamiaddons.components', None)
('QtMultimedia', None)
('org.kde.kdeconnect.sms', None)
('org.kde.kirigamiaddons.formcard', None)
('QtQuick.Layouts', None)
('org.kde.kdeconnect', None)
('QtQuick.Controls', None)
('org.kde.kirigami', None)

$ ./qmlbytecode.py /usr/lib/x86_64-linux-gnu/qt6/plugins/plasma/applets/
org.kde.panel.so
('org.kde.draganddrop', '2.0')
('org.kde.ksvg', '1.0')
('org.kde.plasma.plasmoid', '2.0')
('org.kde.kquickcontrolsaddons', '2.0')
('QtQuick.Window', None)
('org.kde.plasma.core', None)
('QtQuick.Layouts', '1.1')
('QtQuick.Layouts', '1.0')
('org.kde.plasma.components', '3.0')
('org.kde.plasma.extras', '2.0')
('org.kde.kirigami', None)
('QtQuick', '2.15')
('QtQuick', '2.5')
('org.kde.kirigami', '2.20')



Regards,
Olivier


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-kde-talk/attachments/20260406/cea3c2cd/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qmlbytecode.py
Type: text/x-python3
Size: 11041 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-kde-talk/attachments/20260406/cea3c2cd/attachment.bin>


More information about the pkg-kde-talk mailing list