diff --git a/thunar/thunar-session-client.c b/thunar/thunar-session-client.c index de8db1f..19d816d 100644 --- a/thunar/thunar-session-client.c +++ b/thunar/thunar-session-client.c @@ -173,6 +173,10 @@ thunar_session_client_connect (ThunarSessionClient *session_client, gdk_set_sm_client_id (id); /* remember the returned client id */ +#if GLIB_CHECK_VERSION (2, 46, 0) + /* just use the memory */ + session_client->id = id; +#else if (g_mem_is_system_malloc ()) { /* just use the memory */ @@ -184,6 +188,7 @@ thunar_session_client_connect (ThunarSessionClient *session_client, session_client->id = g_strdup (id); free (id); } +#endif /* determine the session file path */ spec = g_strconcat ("sessions/Thunar-", session_client->id, NULL);