Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command to shutdown the screen is not working #3

Open
lcswillems opened this issue Aug 13, 2020 · 6 comments
Open

Command to shutdown the screen is not working #3

lcswillems opened this issue Aug 13, 2020 · 6 comments

Comments

@lcswillems
Copy link

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

@heckelson
Copy link
Owner

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!

@lcswillems
Copy link
Author

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

@rafaelkallis
Copy link

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

@Alucard2169
Copy link

@rafaelkallis I tried that but it's not working

@caph1993
Copy link

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

@DMaroo
Copy link

DMaroo commented Apr 30, 2024

For anyone trying this in KDE 6, I have figured out a fix. You can find the discussion here: #54 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants