Update dbus interface.

This commit is contained in:
iaom 2021-08-13 17:11:26 +08:00
parent 37747aba9a
commit 2417b3ff25
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();
}