Advertisement
Goodevil95

main.cpp

May 27th, 2019
475
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.18 KB | None | 0 0
  1. #include <QDBusInterface>
  2.  
  3. int main()
  4. {
  5.     QDBusInterface gnome("org.gnome.SessionManager", "/org/gnome/SessionManager", "org.gnome.SessionManager");
  6.     gnome.call("Logout", 1);
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement