From c251ecedb86747cfc148af1c503d908a0a13bf30 Mon Sep 17 00:00:00 2001 From: Kevin Wasserman Date: Thu, 21 Mar 2013 17:15:20 -0400 Subject: [PATCH] Fix defines for headless operation --- src/moonshot-identity-manager-app.vala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/moonshot-identity-manager-app.vala b/src/moonshot-identity-manager-app.vala index 4bdc39a..bb1a105 100644 --- a/src/moonshot-identity-manager-app.vala +++ b/src/moonshot-identity-manager-app.vala @@ -247,10 +247,10 @@ public class IdentityManagerApp { public static int main(string[] args){ -#if IPC_DBUS_GLIB - bool headless = GLib.Environment.get_variable("DISPLAY") != null; -#else +#if IPC_MSRPC bool headless = false; +#else + bool headless = GLib.Environment.get_variable("DISPLAY") == null; #endif if (!headless) Gtk.init(ref args); @@ -272,7 +272,7 @@ public static int main(string[] args){ app.show(); if (headless) { -#if IPC_DBUS_GLIB +#if !IPC_MSRPC MainLoop loop = new MainLoop(); loop.run(); #endif -- 2.1.4