Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.6:Update
gnome-packagekit.17976
gnome-packagekit-bring-back-logout-support.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gnome-packagekit-bring-back-logout-support.patch of Package gnome-packagekit.17976
Index: gnome-packagekit-3.32.0/src/gpk-update-viewer.c =================================================================== --- gnome-packagekit-3.32.0.orig/src/gpk-update-viewer.c +++ gnome-packagekit-3.32.0/src/gpk-update-viewer.c @@ -270,6 +270,17 @@ gpk_update_viewer_check_restart (void) gpk_update_viewer_error_dialog (_("Could not restart"), NULL, error->message); } #endif + } else if (restart_update == PK_RESTART_ENUM_SESSION) { + g_autoptr(GDBusConnection) bus = NULL; + bus = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, NULL); + g_dbus_connection_call (bus, + "org.gnome.SessionManager", + "/org/gnome/SessionManager", + "org.gnome.SessionManager", + "Logout", + g_variant_new ("(u)", 0), + NULL, G_DBUS_CALL_FLAGS_NONE, G_MAXINT, + NULL, NULL, NULL); } else if (restart_update == PK_RESTART_ENUM_APPLICATION) { char cmd[256] = {0}; /* need to wait for PackageKit to finish too */
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor