Bug 408735 - sleep through krunner does not work
Summary: sleep through krunner does not work
Status: RESOLVED FIXED
Alias: None
Product: krunner
Classification: Plasma
Component: general (show other bugs)
Version: 5.16.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Kai Uwe Broulik
URL:
Keywords:
: 408823 408824 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-06-15 12:29 UTC by humufr
Modified: 2019-06-17 19:41 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.16.1
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description humufr 2019-06-15 12:29:35 UTC
SUMMARY

Sleep command through krunner does not work anymore

STEPS TO REPRODUCE
1. start krunner 
2. write: sleep
3. click on sleep

OBSERVED RESULT

Nothing


EXPECTED RESULT

Computer going to sleep

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.16.0
(available in About System)
KDE Plasma Version: 5.16.0
KDE Frameworks Version: 5.59.0
Qt Version: 5.12.3

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2019-06-15 16:34:56 UTC
Confirmed. :(
Comment 2 humufr 2019-06-16 09:51:00 UTC
I must add the problem appeared also using the application launcher but in a weirdest way... If going to the "leave" tab it is working but using the search it is not. I think that both problem are related obviously.
Comment 3 Kai Uwe Broulik 2019-06-16 11:51:29 UTC
This broke in the suspend → sleep rename.

The internal ID was changed to match.setId(QStringLiteral("Sleep")); but below it still matches for match.id().startsWith(QLatin1String("PowerDevil_Suspend")

Sounds like an easy fix.
Comment 4 Nate Graham 2019-06-16 14:21:15 UTC
Yeah, I had a vague feeling this might have been my fault. I'll fix it today.
Comment 5 humufr 2019-06-16 14:44:32 UTC
Thanks to all of you to have investigate this issue and thanks for all the work done on KDE. Take care.
Comment 6 Nate Graham 2019-06-16 16:17:11 UTC
Git commit 6a5a38f1281f630edc8fda18523fe9dceef22377 by Nate Graham.
Committed on 16/06/2019 at 16:15.
Pushed by ngraham into branch 'Plasma/5.16'.

[Powerdevil runner] Make Sleep/Suspend command work again
FIXED-IN: 5.16.1

M  +1    -1    runners/powerdevil/PowerDevilRunner.cpp

https://commits.kde.org/plasma-workspace/6a5a38f1281f630edc8fda18523fe9dceef22377
Comment 7 Kai Uwe Broulik 2019-06-17 13:12:21 UTC
*** Bug 408824 has been marked as a duplicate of this bug. ***
Comment 8 Nate Graham 2019-06-17 19:41:03 UTC
*** Bug 408823 has been marked as a duplicate of this bug. ***