diff --git a/src/extension/menu/app-menu-plugin.cpp b/src/extension/menu/app-menu-plugin.cpp index 3312c57..1a66284 100644 --- a/src/extension/menu/app-menu-plugin.cpp +++ b/src/extension/menu/app-menu-plugin.cpp @@ -103,30 +103,30 @@ void AppContentMenu::addToTop(QObject *parent, const QString &appId, const int & void AppContentMenu::addToPanelAction(QObject *parent, const QString &appId, QList &list) { - QDBusInterface iface("com.ukui.panel.desktop", "/", "com.ukui.panel.desktop", QDBusConnection::sessionBus()); + QDBusInterface iface("org.ukui.taskManager", "/taskManager", "org.ukui.taskManager", QDBusConnection::sessionBus()); if (!iface.isValid()) { - qWarning() << "Panel desktop dbusinterface error"; + qWarning() << "Ukui taskManager dbusinterface error"; return; } iface.setTimeout(1); - QDBusReply isFixedOnTaskBar = iface.call("CheckIfExist", appId); + QDBusReply isFixedOnTaskBar = iface.call("checkQuickLauncher", appId); if (!isFixedOnTaskBar.isValid()) { - qWarning() << "Panel desktop dbusinterface call CheckIfExist timeout"; + qWarning() << "Ukui taskManager dbusinterface call checkQuickLauncher timeout"; return; } QString actionName = isFixedOnTaskBar ? QObject::tr("Remove from taskbar") : QObject::tr("Add to taskbar"); - QString functionName = isFixedOnTaskBar ? "RemoveFromTaskbar" : "AddToTaskbar"; + QString functionName = isFixedOnTaskBar ? "removeQuickLauncher" : "addQuickLauncher"; list << new QAction(actionName, parent); QObject::connect(list.last(), &QAction::triggered, parent, [appId, functionName] { - QDBusInterface iface("com.ukui.panel.desktop", "/", "com.ukui.panel.desktop", QDBusConnection::sessionBus()); + QDBusInterface iface("org.ukui.taskManager", "/taskManager", "org.ukui.taskManager", QDBusConnection::sessionBus()); if (!iface.isValid()) { - qWarning() << "Panel desktop dbusinterface error"; + qWarning() << "Ukui taskManager dbusinterface error"; return; }