From 1a23817aec215373008f095d8906aead5fb7bb03 Mon Sep 17 00:00:00 2001
From: Alexander Schwinn <alexxcons@xfce.org>
Date: Fri, 28 Dec 2018 22:45:45 +0100
Subject: [PATCH] Thunar does not recover directories opened in a previous
 session (Bug #14969)

---
 thunar/thunar-application.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/thunar/thunar-application.c b/thunar/thunar-application.c
index 87d7ea6d6..c5ea28689 100644
--- a/thunar/thunar-application.c
+++ b/thunar/thunar-application.c
@@ -359,13 +359,13 @@ thunar_application_startup (GApplication *gapp)
                     G_CALLBACK (thunar_application_uevent), application);
 #endif
 
-  /* connect to the session manager */
-  application->session_client = thunar_session_client_new (opt_sm_client_id);
-
   thunar_application_dbus_init (application);
 
   G_APPLICATION_CLASS (thunar_application_parent_class)->startup (gapp);
 
+  /* connect to the session manager */
+  application->session_client = thunar_session_client_new (opt_sm_client_id);
+
   /* TODO: how do accel maps integrate with GAction/GMenu? Using GtkAction for now */
   /* check if we have a saved accel map */
   path = xfce_resource_lookup (XFCE_RESOURCE_CONFIG, ACCEL_MAP_PATH);
-- 
GitLab