It would be nice to have a UI menu/option to do this somewhere.
Description
With new plasma we have a nice infrastructure for prompts.
One can implement a DBus activatable implementing org.kde.LogoutPrompt
Any plasma code that thinks it can log out will call this.
Then that prompt in turn will call the real shutdown on org.kde.shutdown.
The fact that the menu options don't appear imply a deeper problem than just a missing UI. Hopefully porting to my newer kworkspace2 will fix that.
Could you add some more details on what I need to do in order to implement shutdown on plasma-mobile?
We gained a shutdown ui since we are using startplasma-wayland now. It still needs to be adapted for the mobile usecase, so it only appears if the power button is long-pressed instead of always if the button is pressed.
So, now we do have,
- UI for the shutdown/reboot use-cases
- Long press actions
But... it doesn't work :( @apol any chance you can take a look at what is going wrong about long-press power action?
Alrighty, since both changes are landed, I will build new pinephone image and see if it works.