i3-and-kde-plasma icon indicating copy to clipboard operation
i3-and-kde-plasma copied to clipboard

Command to shutdown the screen is not working

Open lcswillems opened this issue 4 years ago • 6 comments

Hi Alexander,

Thank you for posting your config!

However, this bindsym doesn't work for me:

bindsym $mod+Shift+e exec --no-startup-id qdbus org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.logout -1 -1 -1

If I execute this command in the terminal:

qdbus org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.logout -1 -1 -1

I get this error:

Cannot find 'org.kde.KSMServerInterface.logout' in object /KSMServer at org.kde.ksmserver

I tried under Kubuntu 19.04 with i3 4.16.1 and Kubuntu 20.04 with 4.17.1.

Did you find a workaround?

Lucas

lcswillems avatar Aug 13 '20 20:08 lcswillems

I have found a discussion where it seems to be the case that on KDE 5, the command has apparently changed a little bit.

If you get it to work, feel free to create a pull request!

heckelson avatar Aug 14 '20 14:08 heckelson

Thanks for the link but this doesn't help... I hope somebody will find the solution.

lcswillems avatar Aug 14 '20 16:08 lcswillems

after some reading I got it to work by changing qdbus to qdbus-qt5

rafaelkallis avatar Jun 22 '21 15:06 rafaelkallis

@rafaelkallis I tried that but it's not working

Alucard2169 avatar Oct 28 '23 15:10 Alucard2169

According to StackOverflow, this is the new interface:

qdbus org.kde.Shutdown /Shutdown logout
qdbus org.kde.Shutdown /Shutdown logoutAndReboot
qdbus org.kde.Shutdown /Shutdown logoutAndShutdown

But this will apply the action immediately. It is not clear how to display the confirmation menu

caph1993 avatar Mar 29 '24 18:03 caph1993