chiark / gitweb /
login: support more than just power-gpio-key
[elogind.git] / src / login / logind-session-dbus.c
index e6b4ccd7c6e46150a3fe0e2a432d748c25292822..5d3fec41146157dd5c5bb2fc9232bb2ef2c8cd57 100644 (file)
@@ -704,8 +704,11 @@ int session_send_create_reply(Session *s, sd_bus_error *error) {
         if (!s->create_message)
                 return 0;
 
+/// elogind does not support scope and service jobs
+#if 0
         if (!sd_bus_error_is_set(error) && (s->scope_job || s->user->service_job))
                 return 0;
+#endif // 0
 
         c = s->create_message;
         s->create_message = NULL;
@@ -717,9 +720,10 @@ int session_send_create_reply(Session *s, sd_bus_error *error) {
         if (fifo_fd < 0)
                 return fifo_fd;
 
-        /* Update the session state file before we notify the client
-         * about the result. */
+        /* Update the session and user state files before we notify
+         * the client about the result. */
         session_save(s);
+        user_save(s->user);
 
         p = session_bus_path(s);
         if (!p)