summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorGellule Xg <gellule.xg@gmail.com>2011-06-29 00:50:06 +0000
committerGellule Xg <gellule.xg@gmail.com>2011-06-29 00:50:06 +0000
commit3f7b4ad719c7fa6415f79a40b2e4956175ef010d (patch)
tree6fcd99d159677afd971bca5ec43f7b1b1ab397c6 /src/main.cpp
parentFixed missing initializers, mismatching function with too many parameters, an... (diff)
parentIf GTK built with QUARTZ backend, no need to expect DISPLAY to be set to star... (diff)
downloadinkscape-3f7b4ad719c7fa6415f79a40b2e4956175ef010d.tar.gz
inkscape-3f7b4ad719c7fa6415f79a40b2e4956175ef010d.zip
If GTK is built with the QUARTZ backend, there is no need to expect DISPLAY to be set to start the GUI version.
(bzr r10381)
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 26774fd66..1614e97f7 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -641,7 +641,7 @@ main(int argc, char **argv)
gboolean use_gui;
-#ifndef WIN32
+#if !defined(WIN32) && !defined(GDK_WINDOWING_QUARTZ)
use_gui = (g_getenv("DISPLAY") != NULL);
#else
use_gui = TRUE;