Encode supported platforms in the plugin metdata

This way we don't load pipewire on X, or xcb on Wayland regardless
if they are configured as preferred or not.
This commit is contained in:
David Redondo
2023-01-18 15:13:42 +01:00
parent e865b187a2
commit 953cc4218b
7 changed files with 26 additions and 5 deletions

View File

@@ -22,7 +22,7 @@
#include "pw_framebuffer.h"
#include <KPluginFactory>
K_PLUGIN_CLASS(PWFrameBufferPlugin)
K_PLUGIN_CLASS_WITH_JSON(PWFrameBufferPlugin, "pipewire.json")
PWFrameBufferPlugin::PWFrameBufferPlugin(QObject *parent, const QVariantList &args)
: FrameBufferPlugin(parent, args)