[tracker] tracker-store: Check XDG directories after initializing log



commit 17e30adfb3b31d7990964261a446b71998224d2c
Author: JÃrg Billeter <j bitron ch>
Date:   Wed Jun 22 12:08:06 2011 +0200

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

 src/tracker-store/tracker-main.vala |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/tracker-store/tracker-main.vala b/src/tracker-store/tracker-main.vala
index 768ed27..adf9c99 100644
--- a/src/tracker-store/tracker-main.vala
+++ b/src/tracker-store/tracker-main.vala
@@ -187,11 +187,6 @@ License which can be viewed at:
 
 		initialize_signal_handler ();
 
-		/* Check XDG spec locations XDG_DATA_HOME _MUST_ be writable. */
-		if (!Tracker.env_check_xdg_dirs ()) {
-			return 1;
-		}
-
 		/* This makes sure we don't steal all the system's resources */
 		initialize_priority ();
 
@@ -219,6 +214,11 @@ License which can be viewed at:
 
 		sanity_check_option_values (config);
 
+		/* Check XDG spec locations XDG_DATA_HOME _MUST_ be writable. */
+		if (!Tracker.env_check_xdg_dirs ()) {
+			return 1;
+		}
+
 		DBManagerFlags flags = DBManagerFlags.REMOVE_CACHE;
 
 		if (force_reindex) {



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