projects
/
moonshot-ui.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de2617c
)
Fix defines for headless operation
author
Kevin Wasserman
<kevin@debian.(none)>
Thu, 21 Mar 2013 21:15:20 +0000
(17:15 -0400)
committer
Kevin Wasserman
<kevin@debian.(none)>
Thu, 21 Mar 2013 21:15:20 +0000
(17:15 -0400)
src/moonshot-identity-manager-app.vala
patch
|
blob
|
history
diff --git
a/src/moonshot-identity-manager-app.vala
b/src/moonshot-identity-manager-app.vala
index
4bdc39a
..
bb1a105
100644
(file)
--- 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