feat:(frontend):适配多display场景下dbus唤起功能

This commit is contained in:
iaom 2023-09-14 10:36:19 +08:00
parent 53f36107b2
commit 0fb797c490
15 changed files with 368 additions and 84 deletions

58
.gitignore vendored Normal file
View File

@ -0,0 +1,58 @@
# C++ objects and libs
*.slo
*.lo
*.o
*.a
*.la
*.lai
*.so
*.so.*
*.rc
*.dll
*.dylib
# Qt-es
object_script.*.Release
object_script.*.Debug
*_plugin_import.cpp
/.qmake.cache
/.qmake.stash
*.pro.user
*.pro.user.*
*.qbs.user
*.qbs.user.*
*.moc
moc_*.cpp
moc_*.h
qrc_*.cpp
ui_*.h
*.qmlc
*.jsc
Makefile*
*build-*
*.qm
*.prl
# Qt unit tests
target_wrapper.*
# QtCreator
*.autosave
# QtCreator Qml
*.qmlproject.user
*.qmlproject.user.*
# QtCreator CMake
CMakeLists.txt.user*
# QtCreator 4.8< compilation database
compile_commands.json
# QtCreator local machine specific files for imported projects
*creator.user*
.idea
CMakeFiles
cmake_install.cmake
*_autogen

View File

@ -49,6 +49,13 @@ set(UKUI_SEARCH_SRC
view/result-view.cpp view/result-view.h
view/result-view-delegate.cpp view/result-view-delegate.h
)
if(COMMAND qt_add_dbus_adaptor)
qt_add_dbus_adaptor(UKUI_SEARCH_SRC org.ukui.search.service.xml ukui-search-dbus-service.h UkuiSearch::UkuiSearchDbusServices)
qt_add_dbus_interface(UKUI_SEARCH_SRC org.ukui.search.service.xml service_interface)
else()
qt5_add_dbus_adaptor(UKUI_SEARCH_SRC org.ukui.search.service.xml ukui-search-dbus-service.h UkuiSearch::UkuiSearchDbusServices)
qt5_add_dbus_interface(UKUI_SEARCH_SRC org.ukui.search.service.xml service_interface)
endif()
set(QRC_FILES resource.qrc)

View File

@ -64,12 +64,17 @@ int main(int argc, char *argv[]) {
QApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
#endif
QString display;
if(KWindowSystem::isPlatformWayland()) {
QString sessionType;
if(QString(getenv("XDG_SESSION_TYPE")) == "wayland") {
sessionType = "wayland";
display = getenv("WAYLAND_DISPLAY");
} else if (KWindowSystem::isPlatformX11()) {
} else {
sessionType = "x11";
display = getenv("DISPLAY");
}
UkuiSearchGui app(argc, argv, QString("ukui-search-gui-%1").arg(display));
qDebug() << "Current DISPLAY: " << display;
UkuiSearchGui app(argc, argv, display, sessionType);
if (app.isRunning())
return 0;

View File

@ -0,0 +1,20 @@
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node>
<interface name="org.ukui.search.service">
<method name="showWindow"/>
<method name="searchKeyword">
<arg name="keyword" type="s" direction="in"/>
</method>
<method name="mainWindowSwitch"/>
<signal name="showWindowSignal">
<arg name="display" type="s" direction="out"/>
</signal>
<signal name="searchKeywordSignal">
<arg name="display" type="s" direction="out"/>
<arg name="keyword" type="s" direction="out"/>
</signal>
<signal name="mainWindowSwitchSignal">
<arg name="display" type="s" direction="out"/>
</signal>
</interface>
</node>

View File

@ -18,42 +18,193 @@
*
*/
#include "ukui-search-dbus-service.h"
#include <KWindowSystem>
#include <utility>
#include "serviceadaptor.h"
using namespace UkuiSearch;
void UkuiSearchDbusServices::showWindow(){
qDebug() << "showWindow called";
m_mainWindow->bootOptionsFilter("-s");
void UkuiSearchDbusServices::showWindow()
{
QString display = checkDisplay();
qDebug() << "showWindow called, from display:" << display << "current display: " << m_display;
if(!display.isEmpty() && display != m_display) {
Q_EMIT showWindowSignal(display);
return;
}
onShowWindow(m_display);
}
void UkuiSearchDbusServices::searchKeyword(QString keyword)
{
showWindow();
m_mainWindow->setText(keyword);
QString display = checkDisplay();
qDebug() << "searchKeyword called, from display:" << display << "current display: " << m_display;
if(!display.isEmpty() && display != m_display) {
Q_EMIT searchKeywordSignal(display, keyword);
return;
}
onSearchKeyword(m_display, keyword);
}
void UkuiSearchDbusServices::mainWindowSwitch()
{
QString display = checkDisplay();
qDebug() << "mainWindowSwitch called, from display:" << display << "current display: " << m_display;
if(!display.isEmpty() && display != m_display) {
Q_EMIT mainWindowSwitchSignal(display);
return;
}
onMainWindowSwitch(m_display);
}
UkuiSearchDbusServices::UkuiSearchDbusServices(MainWindow *m, QObject *parent):
QObject(parent),
m_mainWindow(m)
{
m_mainWindow = m;
m_display = qApp->property("display").toString();
//注册服务
bool isServiceRegistered = QDBusConnection::sessionBus().interface()->isServiceRegistered(QStringLiteral("com.ukui.search.service"));
if(isServiceRegistered) {
initWatcher();
} else {
if(!registerService()) {
initWatcher();
}
}
}
UkuiSearchDbusServices::~UkuiSearchDbusServices()
{
if(m_watcher) {
delete m_watcher;
m_watcher = nullptr;
}
if(m_serviceIface) {
delete m_serviceIface;
m_serviceIface = nullptr;
}
}
void UkuiSearchDbusServices::initWatcher()
{
m_watcher = new QDBusServiceWatcher(QStringLiteral("com.ukui.search.service"),QDBusConnection::sessionBus(), QDBusServiceWatcher::WatchForOwnerChange);
connect(m_watcher, &QDBusServiceWatcher::serviceOwnerChanged, this, &UkuiSearchDbusServices::onServiceOwnerChanged);
connectToService();
}
bool UkuiSearchDbusServices::registerService()
{
if(!m_adaptor) {
m_adaptor = new ServiceAdaptor(this);
}
QDBusConnection conn = QDBusConnection::sessionBus();
auto reply = conn.interface()->registerService(QStringLiteral("com.ukui.search.service"),
QDBusConnectionInterface::ReplaceExistingService,
QDBusConnectionInterface::DontAllowReplacement);
if (reply.value() == QDBusConnectionInterface::ServiceNotRegistered) {
return false;
}
bool res = QDBusConnection::sessionBus().registerObject("/", this);
if (!res) {
QDBusConnection::sessionBus().interface()->unregisterService(QStringLiteral("com.ukui.search.service"));
}
return res;
}
void
UkuiSearchDbusServices::onServiceOwnerChanged(const QString &service, const QString &oldOwner, const QString &newOwner)
{
if (newOwner.isEmpty()) {
bool success = registerService();
if (success) {
disConnectToService();
m_watcher->deleteLater();
}
qDebug() << "try to register service:" << success;
return;
}
uint newOwnerPid = QDBusConnection::sessionBus().interface()->servicePid(newOwner);
qDebug() << "newOwnerPid:" << newOwnerPid << ", myPid:" << QCoreApplication::applicationPid() << ", display:" << m_display;
}
void UkuiSearchDbusServices::connectToService()
{
if(!m_serviceIface) {
m_serviceIface = new OrgUkuiSearchServiceInterface(QStringLiteral("com.ukui.search.service"), "/", QDBusConnection::sessionBus());
}
connect(m_serviceIface, &OrgUkuiSearchServiceInterface::showWindowSignal, this, &UkuiSearchDbusServices::onShowWindow);
connect(m_serviceIface, &OrgUkuiSearchServiceInterface::searchKeywordSignal, this, &UkuiSearchDbusServices::onSearchKeyword);
connect(m_serviceIface, &OrgUkuiSearchServiceInterface::mainWindowSwitchSignal, this, &UkuiSearchDbusServices::onMainWindowSwitch);
}
void UkuiSearchDbusServices::disConnectToService()
{
if(m_serviceIface) {
m_serviceIface->disconnect();
delete m_serviceIface;
m_serviceIface = nullptr;
}
}
void UkuiSearchDbusServices::onShowWindow(const QString &display)
{
if(m_display == display) {
m_mainWindow->bootOptionsFilter("-s");
}
}
void UkuiSearchDbusServices::onSearchKeyword(const QString &display, const QString &keyword)
{
if(m_display == display) {
m_mainWindow->bootOptionsFilter("-s");
m_mainWindow->setText(keyword);
}
}
void UkuiSearchDbusServices::onMainWindowSwitch(const QString &display)
{
if(m_display == display) {
if (m_mainWindow->isActiveWindow()) {
m_mainWindow->tryHide();
} else {
m_mainWindow->bootOptionsFilter("-s");
}
}
}
UkuiSearchDbusServices::UkuiSearchDbusServices(MainWindow *m)
QString UkuiSearchDbusServices::checkDisplay()
{
m_mainWindow = m;
//注册服务
QDBusConnection sessionBus = QDBusConnection::sessionBus();
QDBusConnection::sessionBus().unregisterService("com.ukui.search.service");
if(!sessionBus.registerService("com.ukui.search.service")){
qWarning() << "ukui-search dbus register service failed reason:" << sessionBus.lastError();
}
if(!sessionBus.registerObject("/", this, QDBusConnection::ExportAllSlots)){
qWarning() << "ukui-search dbus register object failed reason:" << sessionBus.lastError();
uint pid = 0;
QDBusReply<uint> pidReply = connection().interface()->servicePid(message().service());
qDebug() << "caller pid: " << pidReply.value();
if(pidReply.isValid()) {
pid = pidReply.value();
} else {
return {};
}
return UkuiSearchDbusServices::displayFromPid(pid);;
}
UkuiSearchDbusServices::~UkuiSearchDbusServices(){
QString UkuiSearchDbusServices::displayFromPid(uint pid)
{
QFile environFile(QStringLiteral("/proc/%1/environ").arg(QString::number(pid)));
if (environFile.open(QIODevice::ReadOnly | QIODevice::Text)) {
const QByteArray DISPLAY = qApp->property("sessionType").toString() == "wayland" ? QByteArrayLiteral("WAYLAND_DISPLAY")
: QByteArrayLiteral("DISPLAY");
const auto lines = environFile.readAll().split('\0');
for (const QByteArray &line : lines) {
const int equalsIdx = line.indexOf('=');
if (equalsIdx <= 0) {
continue;
}
const QByteArray key = line.left(equalsIdx);
if (key == DISPLAY) {
const QByteArray value = line.mid(equalsIdx + 1);
return value;
}
}
}
return {};
}

View File

@ -22,18 +22,21 @@
#include <QDBusConnection>
#include <QObject>
#include <QDBusContext>
#include "mainwindow.h"
#include "service_interface.h"
class ServiceAdaptor;
namespace UkuiSearch {
class UkuiSearchDbusServices: public QObject{
class UkuiSearchDbusServices: public QObject, public QDBusContext
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface","org.ukui.search.service")
public:
explicit UkuiSearchDbusServices(MainWindow *m);
explicit UkuiSearchDbusServices(MainWindow *m, QObject *parent = nullptr);
~UkuiSearchDbusServices();
public Q_SLOTS:
@ -41,8 +44,32 @@ public Q_SLOTS:
void searchKeyword(QString keyword);
void mainWindowSwitch();
Q_SIGNALS:
void showWindowSignal(const QString &display);
void searchKeywordSignal(const QString &display, QString keyword);
void mainWindowSwitchSignal(const QString &display);
private Q_SLOTS:
void onShowWindow(const QString &display);
void onSearchKeyword(const QString &display, const QString &keyword);
void onMainWindowSwitch(const QString &display);
private:
void initWatcher();
bool registerService();
void onServiceOwnerChanged(const QString &service, const QString &oldOwner, const QString &newOwner);
void connectToService();
void disConnectToService();
QString checkDisplay();
QString displayFromPid(uint pid);
MainWindow *m_mainWindow = nullptr;
QDBusServiceWatcher *m_watcher = nullptr;
QString m_display;
OrgUkuiSearchServiceInterface *m_serviceIface = nullptr;
ServiceAdaptor * m_adaptor = nullptr;
};
}

View File

@ -24,13 +24,19 @@
#include <QApplication>
#include <QCommandLineParser>
#include "plugin-manager.h"
#include "search-plugin-manager.h"
#include "icon-loader.h"
using namespace UkuiSearch;
UkuiSearchGui::UkuiSearchGui(int &argc, char *argv[], const QString &applicationName): QtSingleApplication (applicationName, argc, argv)
UkuiSearchGui::UkuiSearchGui(int &argc,
char *argv[],
const QString &display,
const QString &sessionType,
const QString &applicationName):
QtSingleApplication (applicationName + display, argc, argv)
{
qDebug()<<"ukui search gui constructor start" << applicationName;
qDebug()<<"ukui search gui constructor start, session type:" << sessionType << "display:" << display;
qApp->setProperty("display", display);
qApp->setProperty("sessionType", sessionType);
setApplicationVersion(QString("v%1").arg(VERSION));
if (!this->isRunning()) {
connect(this, &QtSingleApplication::messageReceived, [=](QString msg) {
@ -39,10 +45,6 @@ UkuiSearchGui::UkuiSearchGui(int &argc, char *argv[], const QString &application
setQuitOnLastWindowClosed(false);
// qRegisterMetaType<QPair<QString, QStringList>>("QPair<QString,QStringList>");
// qRegisterMetaType<UkuiSearch::Document>("Document");
//load translations.
QTranslator *translator = new QTranslator(this);
try {
@ -73,7 +75,7 @@ UkuiSearchGui::UkuiSearchGui(int &argc, char *argv[], const QString &application
PluginManager::getInstance();
m_mainWindow = new UkuiSearch::MainWindow();
m_dbusService = new UkuiSearch::UkuiSearchDbusServices(m_mainWindow);
m_dbusService = new UkuiSearch::UkuiSearchDbusServices(m_mainWindow, this);
qApp->setWindowIcon(IconLoader::loadIconQt("kylin-search"));
this->setActivationWindow(m_mainWindow);
}

View File

@ -31,7 +31,7 @@ class UkuiSearchGui : public QtSingleApplication
{
Q_OBJECT
public:
UkuiSearchGui(int &argc, char *argv[], const QString &applicationName = "ukui-search-gui");
UkuiSearchGui(int &argc, char *argv[] , const QString &display, const QString &sessionType, const QString &applicationName = "ukui-search-gui");
~UkuiSearchGui();
protected Q_SLOTS:

View File

@ -22,22 +22,27 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../frontend/control/create-index-ask-dialog.cpp" line="95"/>
<source>Creating index can help you getting results quickly, whether to create or not?</source>
<location filename="../../../frontend/control/create-index-ask-dialog.cpp" line="78"/>
<source>close</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../frontend/control/create-index-ask-dialog.cpp" line="106"/>
<location filename="../../../frontend/control/create-index-ask-dialog.cpp" line="96"/>
<source>Creating index can help you get results more quickly. Would you like to create one?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../frontend/control/create-index-ask-dialog.cpp" line="107"/>
<source>Don&apos;t remind</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../frontend/control/create-index-ask-dialog.cpp" line="117"/>
<location filename="../../../frontend/control/create-index-ask-dialog.cpp" line="118"/>
<source>No</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../frontend/control/create-index-ask-dialog.cpp" line="119"/>
<location filename="../../../frontend/control/create-index-ask-dialog.cpp" line="120"/>
<source>Yes</source>
<translation type="unfinished"></translation>
</message>
@ -66,32 +71,32 @@
<context>
<name>UkuiSearch::UkuiSearchGui</name>
<message>
<location filename="../../../frontend/ukui-search-gui.cpp" line="107"/>
<location filename="../../../frontend/ukui-search-gui.cpp" line="109"/>
<source>Quit ukui-search application</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../frontend/ukui-search-gui.cpp" line="110"/>
<location filename="../../../frontend/ukui-search-gui.cpp" line="112"/>
<source>Show main window</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../frontend/ukui-search-gui.cpp" line="113"/>
<location filename="../../../frontend/ukui-search-gui.cpp" line="115"/>
<source>unregister a plugin with &lt;pluginName&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../frontend/ukui-search-gui.cpp" line="116"/>
<location filename="../../../frontend/ukui-search-gui.cpp" line="118"/>
<source>register a plugin with &lt;pluginName&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../frontend/ukui-search-gui.cpp" line="119"/>
<location filename="../../../frontend/ukui-search-gui.cpp" line="121"/>
<source>move &lt;pluginName&gt; to the target pos</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../frontend/ukui-search-gui.cpp" line="122"/>
<location filename="../../../frontend/ukui-search-gui.cpp" line="124"/>
<source>move plugin to &lt;index&gt;</source>
<translation type="unfinished"></translation>
</message>

View File

@ -22,22 +22,27 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../frontend/control/create-index-ask-dialog.cpp" line="95"/>
<source>Creating index can help you getting results quickly, whether to create or not?</source>
<location filename="../../../frontend/control/create-index-ask-dialog.cpp" line="78"/>
<source>close</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../frontend/control/create-index-ask-dialog.cpp" line="106"/>
<location filename="../../../frontend/control/create-index-ask-dialog.cpp" line="96"/>
<source>Creating index can help you get results more quickly. Would you like to create one?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../frontend/control/create-index-ask-dialog.cpp" line="107"/>
<source>Don&apos;t remind</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../frontend/control/create-index-ask-dialog.cpp" line="117"/>
<location filename="../../../frontend/control/create-index-ask-dialog.cpp" line="118"/>
<source>No</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../frontend/control/create-index-ask-dialog.cpp" line="119"/>
<location filename="../../../frontend/control/create-index-ask-dialog.cpp" line="120"/>
<source>Yes</source>
<translation type="unfinished"></translation>
</message>
@ -66,32 +71,32 @@
<context>
<name>UkuiSearch::UkuiSearchGui</name>
<message>
<location filename="../../../frontend/ukui-search-gui.cpp" line="107"/>
<location filename="../../../frontend/ukui-search-gui.cpp" line="109"/>
<source>Quit ukui-search application</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../frontend/ukui-search-gui.cpp" line="110"/>
<location filename="../../../frontend/ukui-search-gui.cpp" line="112"/>
<source>Show main window</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../frontend/ukui-search-gui.cpp" line="113"/>
<location filename="../../../frontend/ukui-search-gui.cpp" line="115"/>
<source>unregister a plugin with &lt;pluginName&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../frontend/ukui-search-gui.cpp" line="116"/>
<location filename="../../../frontend/ukui-search-gui.cpp" line="118"/>
<source>register a plugin with &lt;pluginName&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../frontend/ukui-search-gui.cpp" line="119"/>
<location filename="../../../frontend/ukui-search-gui.cpp" line="121"/>
<source>move &lt;pluginName&gt; to the target pos</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../frontend/ukui-search-gui.cpp" line="122"/>
<location filename="../../../frontend/ukui-search-gui.cpp" line="124"/>
<source>move plugin to &lt;index&gt;</source>
<translation type="unfinished"></translation>
</message>

View File

@ -18,10 +18,6 @@
<source>Search</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Creating index can help you getting results quickly, whether to create or not?</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Don&apos;t remind</source>
<translation type="unfinished"></translation>
@ -34,6 +30,14 @@
<source>Yes</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>close</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Creating index can help you get results more quickly. Would you like to create one?</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UkuiSearch::MainWindow</name>

View File

@ -205,32 +205,32 @@
<context>
<name>UkuiSearch::UkuiSearchGui</name>
<message>
<location filename="../../frontend/ukui-search-gui.cpp" line="107"/>
<location filename="../../frontend/ukui-search-gui.cpp" line="109"/>
<source>Quit ukui-search application</source>
<translation></translation>
</message>
<message>
<location filename="../../frontend/ukui-search-gui.cpp" line="110"/>
<location filename="../../frontend/ukui-search-gui.cpp" line="112"/>
<source>Show main window</source>
<translation></translation>
</message>
<message>
<location filename="../../frontend/ukui-search-gui.cpp" line="113"/>
<location filename="../../frontend/ukui-search-gui.cpp" line="115"/>
<source>unregister a plugin with &lt;pluginName&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../frontend/ukui-search-gui.cpp" line="116"/>
<location filename="../../frontend/ukui-search-gui.cpp" line="118"/>
<source>register a plugin with &lt;pluginName&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../frontend/ukui-search-gui.cpp" line="119"/>
<location filename="../../frontend/ukui-search-gui.cpp" line="121"/>
<source>move &lt;pluginName&gt; to the target pos</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../frontend/ukui-search-gui.cpp" line="122"/>
<location filename="../../frontend/ukui-search-gui.cpp" line="124"/>
<source>move plugin to &lt;index&gt;</source>
<translation type="unfinished"></translation>
</message>

View File

@ -205,32 +205,32 @@
<context>
<name>UkuiSearch::UkuiSearchGui</name>
<message>
<location filename="../../frontend/ukui-search-gui.cpp" line="107"/>
<location filename="../../frontend/ukui-search-gui.cpp" line="109"/>
<source>Quit ukui-search application</source>
<translation> </translation>
</message>
<message>
<location filename="../../frontend/ukui-search-gui.cpp" line="110"/>
<location filename="../../frontend/ukui-search-gui.cpp" line="112"/>
<source>Show main window</source>
<translation> </translation>
</message>
<message>
<location filename="../../frontend/ukui-search-gui.cpp" line="113"/>
<location filename="../../frontend/ukui-search-gui.cpp" line="115"/>
<source>unregister a plugin with &lt;pluginName&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../frontend/ukui-search-gui.cpp" line="116"/>
<location filename="../../frontend/ukui-search-gui.cpp" line="118"/>
<source>register a plugin with &lt;pluginName&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../frontend/ukui-search-gui.cpp" line="119"/>
<location filename="../../frontend/ukui-search-gui.cpp" line="121"/>
<source>move &lt;pluginName&gt; to the target pos</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../frontend/ukui-search-gui.cpp" line="122"/>
<location filename="../../frontend/ukui-search-gui.cpp" line="124"/>
<source>move plugin to &lt;index&gt;</source>
<translation type="unfinished"></translation>
</message>

View File

@ -541,32 +541,32 @@
<context>
<name>UkuiSearch::UkuiSearchGui</name>
<message>
<location filename="../../frontend/ukui-search-gui.cpp" line="107"/>
<location filename="../../frontend/ukui-search-gui.cpp" line="109"/>
<source>Quit ukui-search application</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../frontend/ukui-search-gui.cpp" line="110"/>
<location filename="../../frontend/ukui-search-gui.cpp" line="112"/>
<source>Show main window</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../frontend/ukui-search-gui.cpp" line="113"/>
<location filename="../../frontend/ukui-search-gui.cpp" line="115"/>
<source>unregister a plugin with &lt;pluginName&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../frontend/ukui-search-gui.cpp" line="116"/>
<location filename="../../frontend/ukui-search-gui.cpp" line="118"/>
<source>register a plugin with &lt;pluginName&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../frontend/ukui-search-gui.cpp" line="119"/>
<location filename="../../frontend/ukui-search-gui.cpp" line="121"/>
<source>move &lt;pluginName&gt; to the target pos</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../frontend/ukui-search-gui.cpp" line="122"/>
<location filename="../../frontend/ukui-search-gui.cpp" line="124"/>
<source>move plugin to &lt;index&gt;</source>
<translation type="unfinished"></translation>
</message>

View File

@ -351,32 +351,32 @@
<context>
<name>UkuiSearch::UkuiSearchGui</name>
<message>
<location filename="../../frontend/ukui-search-gui.cpp" line="107"/>
<location filename="../../frontend/ukui-search-gui.cpp" line="109"/>
<source>Quit ukui-search application</source>
<translation>退</translation>
</message>
<message>
<location filename="../../frontend/ukui-search-gui.cpp" line="110"/>
<location filename="../../frontend/ukui-search-gui.cpp" line="112"/>
<source>Show main window</source>
<translation></translation>
</message>
<message>
<location filename="../../frontend/ukui-search-gui.cpp" line="113"/>
<location filename="../../frontend/ukui-search-gui.cpp" line="115"/>
<source>unregister a plugin with &lt;pluginName&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../frontend/ukui-search-gui.cpp" line="116"/>
<location filename="../../frontend/ukui-search-gui.cpp" line="118"/>
<source>register a plugin with &lt;pluginName&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../frontend/ukui-search-gui.cpp" line="119"/>
<location filename="../../frontend/ukui-search-gui.cpp" line="121"/>
<source>move &lt;pluginName&gt; to the target pos</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../frontend/ukui-search-gui.cpp" line="122"/>
<location filename="../../frontend/ukui-search-gui.cpp" line="124"/>
<source>move plugin to &lt;index&gt;</source>
<translation type="unfinished"></translation>
</message>