D23112: Add a event Spy for GtkFileChooser recent files
Kai Uwe Broulik
noreply at phabricator.kde.org
Mon Aug 12 13:27:29 BST 2019
broulik added inline comments.
INLINE COMMENTS
> GtkEventSpy.cpp:125
> +
> + app.name = attributes.value("exec");
> + // remove "'" caracters wrapping the command and any character after a space
It stores the full `Exec` line of the desktop file, including the `%u`.
What you probably want do to is use `KServiceTypeTrader` to find the application with said Exec line.
auto services = KServiceTypeTrader::self()->query(QStringLiteral("Application"), QStringLiteral("exist Exec and ('%1' == Exec)").arg(cmd));
and then operate on the `KService` desktop file name, e.g. `org.gnome.evince` instead of the executable.
REPOSITORY
R161 KActivity Manager Service
REVISION DETAIL
https://phabricator.kde.org/D23112
To: meven, #frameworks, ivan
Cc: broulik, plasma-devel, LeGast00n, 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/20190812/7f7110b4/attachment.html>
More information about the Plasma-devel
mailing list