Commit 9489a7cd authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Tabs Runner] port to new KRunner metadata system & install location

parent 333c1be5
......@@ -5,7 +5,7 @@ set(PROJECT_VERSION "5.19.80")
set(PROJECT_VERSION_MAJOR 5)
set(QT_MIN_VERSION "5.9.0")
set(KF5_MIN_VERSION "5.70.0")
set(KF5_MIN_VERSION "5.72.0")
find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
......
......@@ -11,7 +11,6 @@ target_link_libraries(krunner_browsertabs
KF5::Runner
)
install(TARGETS krunner_browsertabs DESTINATION ${KDE_INSTALL_PLUGINDIR} )
install(FILES plasma-runner-browsertabs.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
kcoreaddons_desktop_to_json(krunner_browsertabs plasma-runner-browsertabs.desktop)
install(TARGETS krunner_browsertabs DESTINATION "${KDE_INSTALL_PLUGINDIR}/kf5/krunner")
......@@ -88,7 +88,6 @@ Comment[zh_TW]=尋找並開啟瀏覽器分頁
X-KDE-ServiceTypes=Plasma/Runner
Type=Service
Icon=internet-web-browser
X-KDE-Library=krunner_browsertabs
X-KDE-PluginInfo-Author=Kai Uwe Broulik
X-KDE-PluginInfo-Email=kde@privat.broulik.de
X-KDE-PluginInfo-Name=browsertabs
......
......@@ -31,6 +31,8 @@
static const QString s_muteTab = QStringLiteral("mute");
static const QString s_unmuteTab = QStringLiteral("unmute");
K_EXPORT_PLASMA_RUNNER_WITH_JSON(TabsRunner, "plasma-runner-browsertabs.json")
TabsRunner::TabsRunner(QObject *parent, const QVariantList &args)
: Plasma::AbstractRunner(parent, args)
{
......@@ -301,6 +303,4 @@ QList<QAction *> TabsRunner::actionsForMatch(const Plasma::QueryMatch &match)
return actions;
}
K_EXPORT_PLASMA_RUNNER(browsertabs, TabsRunner)
#include "tabsrunner.moc"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment