This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository e16.
View the commit online.
commit 29b1cfbaada3aeacdfdc16affba901081b625c8e
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Sat Apr 6 13:07:40 2024 +0200
session: Try dbus before SM/ICE on logout/shutdown
Otherwise we will not get the Shutdown/Reboot dialog but always the
Logout one (with dbus and SM both enabled).
---
src/session.c | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/src/session.c b/src/session.c
index 7a379b9b..a4a96fd2 100644
--- a/src/session.c
+++ b/src/session.c
@@ -564,25 +564,26 @@ _SessionExitDbus(int how)
static void
_SessionLogout(int how)
{
-#if USE_SM
+#ifdef USE_SM
if (EDebug(EDBUG_TYPE_SESSION))
Eprintf("%s: how=%d smc=%p\n", __func__, how, sm_conn);
+#else
+ if (EDebug(EDBUG_TYPE_SESSION))
+ Eprintf("%s: how=%d\n", __func__, how);
+#endif
+#if USE_DBUS
+ if (_SessionExitDbus(how) == 0)
+ return;
+#endif
+
+#if USE_SM
if (sm_conn)
{
SmcRequestSaveYourself(sm_conn, SmSaveBoth, True, SmInteractStyleAny,
False, True);
return;
}
-#else
- if (EDebug(EDBUG_TYPE_SESSION))
- Eprintf("%s: how=%d\n", __func__, how);
-
-#endif /* USE_SM */
-
-#if USE_DBUS
- if (_SessionExitDbus(how) == 0)
- return;
#endif
switch (how)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.