summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorGellule Xg <gellule.xg@gmail.com>2011-06-28 06:50:49 +0000
committerGellule Xg <gellule.xg@gmail.com>2011-06-28 06:50:49 +0000
commitb0b8046a08a7d4d1cd21b5a0a531d9cfe7167f44 (patch)
tree6fcd99d159677afd971bca5ec43f7b1b1ab397c6 /src/main.cpp
parentFixed missing initializers, mismatching function with too many parameters, an... (diff)
downloadinkscape-b0b8046a08a7d4d1cd21b5a0a531d9cfe7167f44.tar.gz
inkscape-b0b8046a08a7d4d1cd21b5a0a531d9cfe7167f44.zip
If GTK built with QUARTZ backend, no need to expect DISPLAY to be set to start the GUI version.
Fixed bugs: - https://launchpad.net/bugs/251982 (bzr r10380.1.1)
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;