[tracker/libtracker-bus: 43/51] libtracker-bus: Allow backend to switch between fd passing and dbus-glib
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/libtracker-bus: 43/51] libtracker-bus: Allow backend to switch between fd passing and dbus-glib
- Date: Tue, 10 Aug 2010 14:11:26 +0000 (UTC)
commit 3f04b2bc476bb22e54d28999e995d86a70ad7139
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 f686806..e0e781b 100644
--- a/src/libtracker-bus/tracker-bus.vala
+++ b/src/libtracker-bus/tracker-bus.vala
@@ -58,11 +58,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 ("steroids") == 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]