I'm new with dbus. I know how to logout current user from terminal using dbus messages
dbus-send --session --type=method_call --print-reply --dest=org.gnome.SessionManager /org/gnome/SessionManager org.gnome.SessionManager.Logout uint32:1
It sends messages to SessionManager but currently I'm logged with user B, but switched account with user A(not I'm logged in as A). Now I have 2 session. My goal is to send Dbus messages and logout user B. When I'm typing
dbus-send --session \
It only shows me 1
string "org.gnome.SessionManager" which is current users. Is it possible to use dbus messages and accomplish what I want?