From 323da86cf1678af8c487b9289945dd4be17a3494 Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Fri, 26 Sep 2025 10:12:41 -0400 Subject: pluma-app: Register pluma with GtkApplication The PlumaApp was not being registered with GtkApplication, leading to segfaults when restoring state through the sesion manager. --- pluma/pluma-app.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pluma/pluma-app.c b/pluma/pluma-app.c index 5fc6da4b..cfc91b04 100644 --- a/pluma/pluma-app.c +++ b/pluma/pluma-app.c @@ -535,6 +535,12 @@ pluma_app_create_window_real (PlumaApp *app, app->priv->windows = g_list_prepend (app->priv->windows, window); + GApplication *gtk_app = g_application_get_default (); + if (GTK_IS_APPLICATION (gtk_app)) + { + gtk_application_add_window (GTK_APPLICATION (gtk_app), GTK_WINDOW (window)); + } + pluma_debug_message (DEBUG_APP, "Window created"); if (role != NULL) -- cgit v1.2.1