Autodetecting app type (console/GUI), when launching from Dolphin or KRunner
Sławomir Lach
slawek at lach.art.pl
Tue Sep 28 12:45:20 BST 2021
I added partial integration KIO with WXConsoleSpawner. I will move code from
WXConsoleSpawner to KIO and integrate it with QT/KDEFrameworks to displaying
GUI in place of libgrattao.
My work aims to detect if started process belongs to console or GUI class. It
uses some assumptions, that (for example) console app will read from terminal
and GUI not. In other hand, GUI app probably will open Wayland socket or will
be linked against Xcb/Xlib.
Currently, KIO requires separate app to working with detection. This
application is mine and hosted on sourceforge.net. It is called
WXConsoleSpawner. WXConsoleSpawner requires libgreattao. The most annoying
think is I added to libgreattao features, which is compatible (currently) only
with GTK4 backend.
Test it.
https://www.youtube.com/watch?v=Ed6oAI3RsyE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-First-path-to-detect-app-type.patch
Type: text/x-patch
Size: 7658 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20210928/dec26528/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20210928/dec26528/attachment.sig>
More information about the Kde-frameworks-devel
mailing list