[tracker] tracker-miner-fs: Check XDG directories after initializing log



commit 855f943542a02b00634527c78828d9091f310f05
Author: JÃrg Billeter <j bitron ch>
Date:   Wed Jun 22 12:11:21 2011 +0200

    tracker-miner-fs: Check XDG directories after initializing log
    
    This prevents log messages below configured verbosity.

 src/miners/fs/tracker-main.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/miners/fs/tracker-main.c b/src/miners/fs/tracker-main.c
index af43848..53d820f 100644
--- a/src/miners/fs/tracker-main.c
+++ b/src/miners/fs/tracker-main.c
@@ -713,11 +713,6 @@ main (gint argc, gchar *argv[])
 
 	initialize_signal_handler ();
 
-	/* Check XDG spec locations XDG_DATA_HOME _MUST_ be writable. */
-	if (!tracker_env_check_xdg_dirs ()) {
-		return EXIT_FAILURE;
-	}
-
 	/* This makes sure we don't steal all the system's resources */
 	initialize_priority ();
 
@@ -739,6 +734,11 @@ main (gint argc, gchar *argv[])
 
 	sanity_check_option_values (config);
 
+	/* Check XDG spec locations XDG_DATA_HOME _MUST_ be writable. */
+	if (!tracker_env_check_xdg_dirs ()) {
+		return EXIT_FAILURE;
+	}
+
 	main_loop = g_main_loop_new (NULL, FALSE);
 
 	g_message ("Checking if we're running as a daemon:");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]