Reboot & Shutdown UI options
Closed, ResolvedPublic

Description

It would be nice to have a UI menu/option to do this somewhere.

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.

bshah added subscribers: apol, bshah.Mar 30 2020, 5:08 AM

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?

bshah added a comment.Apr 2 2020, 11:22 AM

Alrighty, since both changes are landed, I will build new pinephone image and see if it works.

bshah closed this task as Resolved.Apr 2 2020, 12:33 PM
bshah claimed this task.
bshah added a subscriber: dkardarakos.

@dkardarakos confirmed that this works, we can close this.