[KRunner] Forward KRunner switchUser to new KSMServer user switcher

REVIEW: 126100
wilder-5.14
Kai Uwe Broulik 10 years ago
parent 697aaf8067
commit 2dcd1e0bd8
  1. 10
      krunner/view.cpp

@ -318,10 +318,12 @@ void View::querySingleRunner(const QString &runnerName, const QString &term)
void View::switchUser()
{
setVisible(true);
m_qmlObj->rootObject()->setProperty("runner", "desktopsessions");
m_qmlObj->rootObject()->setProperty("query", "SESSIONS");
QDBusConnection::sessionBus().asyncCall(
QDBusMessage::createMethodCall(QStringLiteral("org.kde.ksmserver"),
QStringLiteral("/KSMServer"),
QStringLiteral("org.kde.KSMServerInterface"),
QStringLiteral("openSwitchUserDialog"))
);
}
void View::displayConfiguration()

Loading…
Cancel
Save