Some methods in KFileItemActions accept trader-language contraints. However we generally move away from using that in favor of C++ filter callbacks and the classes that take these constraints (KServiceTypeTrader, KMimeTypeTrader, KPluginTrader etc) are getting deprecated.
Description
Description
Status | Assigned | Task | ||
---|---|---|---|---|
Open | None | T12171 Meta task: KService | ||
Open | alex | T12179 KService: deprecate KServiceTypeTrader | ||
Open | alex | T14338 Port KFileItemActions away from trader constraints |
Comment Actions
Looking at the usage of KFileItemActions::addOpenWithActionsTo() (and the other methods in that class), that it's basically used as "show all apps" or "show all apps except the current app", so adding an overload that takes a string list of "apps to exclude" could work.
Alternatively (or we add two overloads?) we could add an overload that takes a FilterFunc, but that could be overkill, since in all those years traderConstraint is mostly used to exclude some app, usually the current app.
Comment Actions
https://invent.kde.org/frameworks/kio/-/merge_requests/414
https://invent.kde.org/network/kget/-/merge_requests/13
That deprecates & ports one occurrence of the the addOpenWithActionsTo method.
https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/436