Merge branch '0720-newfrontend' into 'new-frontend'

Update dbus interface.

See merge request kylin-desktop/ukui-search!92
This commit is contained in:
PengfeiZhang 2021-08-13 09:16:06 +00:00
commit 0e85727b3c
1 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,8 @@ UkuiSearchDbusServices::UkuiSearchDbusServices(MainWindow *m)
m_mainWindow = m;
//注册服务
QDBusConnection sessionBus = QDBusConnection::sessionBus();
if(!sessionBus.registerService("org.ukui.search.service")){
QDBusConnection::sessionBus().unregisterService("com.ukui.search.service");
if(!sessionBus.registerService("com.ukui.search.service")){
qWarning() << "ukui-search dbus register service failed reason:" << sessionBus.lastError();
}