summaryrefslogtreecommitdiff
path: root/src/caja-application.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-03-18 18:16:45 +0100
committerStefano Karapetsas <[email protected]>2014-03-18 18:16:45 +0100
commit4f1e756e08e61840eb9a52de4debee30006ea31e (patch)
treea44973cfcf1cc4d9b601912a996a10e8ae9c6ac4 /src/caja-application.c
parent02a296bf051897dd2d30bea2ae61aee23ea635bf (diff)
downloadcaja-4f1e756e08e61840eb9a52de4debee30006ea31e.tar.bz2
caja-4f1e756e08e61840eb9a52de4debee30006ea31e.tar.xz
Possible solution for x-caja-desktop issue
Diffstat (limited to 'src/caja-application.c')
-rw-r--r--src/caja-application.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/caja-application.c b/src/caja-application.c
index 3f4282c0..47c86c81 100644
--- a/src/caja-application.c
+++ b/src/caja-application.c
@@ -961,6 +961,15 @@ queue_accel_map_save_callback (GtkAccelMap *object, gchar *accel_path,
}
}
+static gboolean
+desktop_changed_callback_connect (CajaApplication *application)
+{
+ g_signal_connect_swapped (caja_preferences, "changed::" CAJA_PREFERENCES_DESKTOP_IS_HOME_DIR,
+ G_CALLBACK(desktop_location_changed_callback),
+ G_OBJECT (application));
+ return FALSE;
+}
+
void
caja_application_startup (CajaApplication *application,
gboolean kill_shell,
@@ -1029,9 +1038,8 @@ caja_application_startup (CajaApplication *application,
/* Monitor the preference to have the desktop */
/* point to the Unix home folder */
- g_signal_connect_swapped (caja_preferences, "changed::" CAJA_PREFERENCES_DESKTOP_IS_HOME_DIR,
- G_CALLBACK(desktop_location_changed_callback),
- G_OBJECT (application));
+ g_timeout_add_seconds (30, (GSourceFunc) desktop_changed_callback_connect, application);
+
/* Create the other windows. */
if (urls != NULL || !no_default_window)
{