3
2
Fork
You've already forked timecheck
5

cleaner user log out #19

Open
opened 2020年06月16日 10:57:41 +02:00 by jonas-l · 4 comments
Contributor
Copy link

eventually using the dbus, a forced logout could be tried after a short delay

eventually using the dbus, a forced logout could be tried after a short delay
Collaborator
Copy link

Do you have any documentation about how you could log out via Dbus? And is Dbus present on all linux distros?

Do you have any documentation about how you could log out via Dbus? And is Dbus present on all linux distros?
Author
Contributor
Copy link

I once did a small search and found something to sign out using the dbus.

I don't think that every distro contains it. I would not completly depend on it/ use it as first step during sign out before killing.

I once did a small search and found something to sign out using the dbus. I don't think that every distro contains it. I would not completly depend on it/ use it as first step during sign out before killing.
Collaborator
Copy link

Okay this sound good. If I have some more time I'll maybe implement it or if somebody else wants to do it just mention it here so that we don't do the same work twice...

Okay this sound good. If I have some more time I'll maybe implement it or if somebody else wants to do it just mention it here so that we don't do the same work twice...
Author
Contributor
Copy link

dbus-send --dest=org.gnome.SessionManager --type=method_call /org/gnome/SessionManager org.gnome.SessionManager.Logout uint32:2 logs the user out without confirmation (tested at Gnome and Cinnamon, but most likely does not work at other desktop environments)

Documentation for this is at https://people.gnome.org/~mccann/gnome-session/docs/gnome-session.html#id345480

``dbus-send --dest=org.gnome.SessionManager --type=method_call /org/gnome/SessionManager org.gnome.SessionManager.Logout uint32:2`` logs the user out without confirmation (tested at Gnome and Cinnamon, but most likely does not work at other desktop environments) Documentation for this is at <https://people.gnome.org/~mccann/gnome-session/docs/gnome-session.html#id345480>
Sign in to join this conversation.
No Branch/Tag specified
master
testing
No results found.
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nuron/timecheck#19
Reference in a new issue
nuron/timecheck
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?