diff --git a/plugins/datetime/datetimeplugin.cpp b/plugins/datetime/datetimeplugin.cpp index 8db6673ec..01bc15400 100644 --- a/plugins/datetime/datetimeplugin.cpp +++ b/plugins/datetime/datetimeplugin.cpp @@ -105,7 +105,7 @@ void DatetimePlugin::invokedMenuItem(const QString &itemKey, const QString &menu Q_UNUSED(checked) if (menuId == "open") - QProcess::startDetached("dde-control-center", QStringList() << "datetime"); + QProcess::startDetached("dbus-send --print-reply --dest=com.deepin.dde.ControlCenter /com/deepin/dde/ControlCenter com.deepin.dde.ControlCenter.ShowModule \"string:datetime\""); else m_centralWidget->toggleHourFormat(); } diff --git a/plugins/network/item/wireditem.cpp b/plugins/network/item/wireditem.cpp index 20eef4eaa..73aa206af 100644 --- a/plugins/network/item/wireditem.cpp +++ b/plugins/network/item/wireditem.cpp @@ -66,7 +66,7 @@ QWidget *WiredItem::itemPopup() const QString WiredItem::itemCommand() const { - return "dde-control-center -s network"; + return "dbus-send --print-reply --dest=com.deepin.dde.ControlCenter /com/deepin/dde/ControlCenter com.deepin.dde.ControlCenter.ShowModule \"string:network\""; } void WiredItem::paintEvent(QPaintEvent *e) diff --git a/plugins/sound/sounditem.cpp b/plugins/sound/sounditem.cpp index 8940d51bd..575bd252a 100644 --- a/plugins/sound/sounditem.cpp +++ b/plugins/sound/sounditem.cpp @@ -80,7 +80,7 @@ void SoundItem::invokeMenuItem(const QString menuId, const bool checked) if (menuId == MUTE) m_sinkInter->SetMute(!m_sinkInter->mute()); else if (menuId == SETTINS) - QProcess::startDetached("dde-control-center", QStringList() << "sound"); + QProcess::startDetached("dbus-send --print-reply --dest=com.deepin.dde.ControlCenter /com/deepin/dde/ControlCenter com.deepin.dde.ControlCenter.ShowModule \"string:sound\""); } QSize SoundItem::sizeHint() const