Filter for desktop files a bit earlier here.
Make the plugin manager check the service type provided by a plugin.

So far all plugins provide all types, but that's going to change.
Read plugin id from the .desktop file if present.
Add a convenience template also for stand-alone tool UI plugins.
Split the text codec plugin into a probe and UI DLL.

This allows usage of this plugin if there's no widget support available
on the target.