Skip to content

Commit

Permalink
Merge pull request #575 from nickylivardo/kde-autologout
Browse files Browse the repository at this point in the history
Change the kde plasma logout service call from "ksmserver" to "Shutdown"
  • Loading branch information
es20490446e authored Aug 7, 2024
2 parents 1fcdcf2 + b726c5f commit ba77336
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions optimus_manager/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ def logout_current_desktop_session():
else:

def logout_kde():
kde = session_bus.get_object("org.kde.ksmserver", "/KSMServer")
kde.logout(0, 3, 3, dbus_interface="org.kde.KSMServerInterface")
kde = session_bus.get_object("org.kde.Shutdown", "/Shutdown")
kde.logout()
def logout_gnome():
gnome = session_bus.get_object("org.gnome.SessionManager", "/org/gnome/SessionManager")
gnome.Logout(1, dbus_interface="org.gnome.SessionManager")
Expand Down

0 comments on commit ba77336

Please sign in to comment.