diff --git a/frontend/ukui-search-dbus-service.cpp b/frontend/ukui-search-dbus-service.cpp index f214b2c..5cf9831 100644 --- a/frontend/ukui-search-dbus-service.cpp +++ b/frontend/ukui-search-dbus-service.cpp @@ -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(); }