|
|
|
|
@ -109,9 +109,11 @@ void Pass::run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &m |
|
|
|
|
Q_UNUSED(context); |
|
|
|
|
|
|
|
|
|
auto ret = QProcess::execute(QString("pass -c ") + match.text()); |
|
|
|
|
QString msg = i18n("Password %1 copied to clipboard for %2 seconds", match.text(), timeout); |
|
|
|
|
if (ret == 0) { |
|
|
|
|
KNotification::event("passwordunlocked", msg); |
|
|
|
|
QString msg = i18n("Password %1 copied to clipboard for %2 seconds", match.text(), timeout); |
|
|
|
|
KNotification::event("password-unlocked", "Pass", msg, |
|
|
|
|
"object-unlocked", nullptr, KNotification::CloseOnTimeout, |
|
|
|
|
"krunner_pass"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|