D23112: Add a event Spy for GtkFileChooser recent files

Kai Uwe Broulik noreply at phabricator.kde.org
Wed Aug 14 07:52:54 BST 2019


broulik added inline comments.

INLINE COMMENTS

> GtkEventSpy.cpp:135
> +        // See https://techbase.kde.org/Development/Tutorials/Services/Traders#The_KTrader_Query_Language
> +        QString query = QString("exist Exec and ((Exec ~~ '%1') or (exist GenericName and '%1' ~~ GenericName) or (exist Name and '%1' ~~ Name))").arg(exec);
> +        KService::List services = KServiceTypeTrader::self()->query(QStringLiteral("Application"), query);

Isn't that a bit coarse? Doesn't matching the `Exec` line exactly work?

REPOSITORY
  R161 KActivity Manager Service

REVISION DETAIL
  https://phabricator.kde.org/D23112

To: meven, #frameworks, ivan
Cc: broulik, plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20190814/86f4ba95/attachment-0001.html>


More information about the Plasma-devel mailing list