[tracker/libtracker-bus: 34/44] libtracker-bus: Allow backend to switch between fd passing and dbus-glib



commit d47afa7949c605c56c1806cbdd66bdf1ee4972f9
Author: Martyn Russell <martyn lanedo com>
Date:   Fri Jul 23 10:04:15 2010 +0100

    libtracker-bus: Allow backend to switch between fd passing and dbus-glib
    
    Variable: TRACKER_BUS_BACKEND="dbus-glib" forces dbus-glib if steroids available

 src/libtracker-bus/tracker-bus.vala |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/libtracker-bus/tracker-bus.vala b/src/libtracker-bus/tracker-bus.vala
index 17d5a76..64ee654 100644
--- a/src/libtracker-bus/tracker-bus.vala
+++ b/src/libtracker-bus/tracker-bus.vala
@@ -56,11 +56,13 @@ public class Tracker.Bus.Connection : Tracker.Sparql.Connection {
 		
 		try {
 			if (strcmp (Config.HAVE_DBUS_FD_PASSING_IN_VALA, "1") == 0) {
-				use_steroids = true;
-			} else {
-				use_steroids = false;
-			}
+				string env_backend = Environment.get_variable ("TRACKER_BUS_BACKEND");
 
+				if (env_backend == null || env_backend.ascii_casecmp ("dbus-glib") != 0) {
+					use_steroids = true;
+				}
+			}
+			
 			debug ("Using steroids = %s", use_steroids ? "yes" : "no");
 
 			connection = DBus.Bus.get (DBus.BusType.SESSION);



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