Skip to content
  • Alexander Lohnau's avatar
    Allow loading of Thumbnailers using embedded json metadata · fc086a65
    Alexander Lohnau authored
    This way thumbnailer plugins don't need to be loaded using the KServiceTypeTrader
    mechanism, but can use embedded json metadata.
    KServiceTypeTrader is planned to go away in KF6.
    
    This also simplifies the code once the KServiceTypeTrader code path is dropped, because
    we can then load the metadata from the binary path and don't have to use
    KServiceTypeTrader to get the desktop file for the given binary.
    
    By using KPluginInfo to convert the metadata to json on the fly, we don't need to
    do another query for the file on disk and then a reparsing of the desktop file.
    This is ~2.5 times slower and even requires a few more lines to implement.
    
    Counterpart of frameworks/kio!630
    
    Task: https://phabricator.kde.org/T12179
    fc086a65