[mutter] launcher: Fix indentation
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] launcher: Fix indentation
- Date: Fri, 14 Jan 2022 09:53:33 +0000 (UTC)
commit 8b628f0ae417289958d867d2fdfd628a80ac3a8e
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Fri Dec 10 23:32:24 2021 +0100
launcher: Fix indentation
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2151>
src/backends/native/meta-launcher.c | 74 ++++++++++++++++++-------------------
1 file changed, 37 insertions(+), 37 deletions(-)
---
diff --git a/src/backends/native/meta-launcher.c b/src/backends/native/meta-launcher.c
index 1056cf76e8..e87a66af80 100644
--- a/src/backends/native/meta-launcher.c
+++ b/src/backends/native/meta-launcher.c
@@ -116,43 +116,43 @@ find_systemd_session (gchar **session_id,
return FALSE;
}
- if (n_sessions == 0)
- {
- g_set_error (error,
- G_IO_ERROR,
- G_IO_ERROR_NOT_FOUND,
- "User %d has no sessions",
- getuid ());
- return FALSE;
- }
-
- for (int i = 0; i < n_sessions; ++i)
- {
- saved_errno = sd_session_get_class (sessions[i], &class);
- if (saved_errno < 0)
- {
- g_warning ("Couldn't get class for session '%d': %s",
- i,
- g_strerror (-saved_errno));
- continue;
- }
-
- if (g_strcmp0 (class, "greeter") == 0)
- {
- local_session_id = g_strdup (sessions[i]);
- break;
- }
- }
-
- if (!local_session_id)
- {
- g_set_error (error,
- G_IO_ERROR,
- G_IO_ERROR_NOT_FOUND,
- "Couldn't find a session or a greeter session for user %d",
- getuid ());
- return FALSE;
- }
+ if (n_sessions == 0)
+ {
+ g_set_error (error,
+ G_IO_ERROR,
+ G_IO_ERROR_NOT_FOUND,
+ "User %d has no sessions",
+ getuid ());
+ return FALSE;
+ }
+
+ for (int i = 0; i < n_sessions; ++i)
+ {
+ saved_errno = sd_session_get_class (sessions[i], &class);
+ if (saved_errno < 0)
+ {
+ g_warning ("Couldn't get class for session '%d': %s",
+ i,
+ g_strerror (-saved_errno));
+ continue;
+ }
+
+ if (g_strcmp0 (class, "greeter") == 0)
+ {
+ local_session_id = g_strdup (sessions[i]);
+ break;
+ }
+ }
+
+ if (!local_session_id)
+ {
+ g_set_error (error,
+ G_IO_ERROR,
+ G_IO_ERROR_NOT_FOUND,
+ "Couldn't find a session or a greeter session for user %d",
+ getuid ());
+ return FALSE;
+ }
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]