Code

fix 167857
authorbuliabyak <buliabyak@users.sourceforge.net>
Wed, 19 Aug 2009 00:10:57 +0000 (00:10 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Wed, 19 Aug 2009 00:10:57 +0000 (00:10 +0000)
src/inkscape.cpp

index 01e11a9161260e01fc129d015d90787c113959d0..fc9aff78e2bb9e9fed0eb853d81878a8f385127e 100644 (file)
@@ -805,8 +805,10 @@ inkscape_application_init (const gchar *argv0, gboolean use_gui)
         }
     }
 
-    inkscape_load_menus(inkscape);
-    sp_input_load_from_preferences();
+    if (use_gui) {
+        inkscape_load_menus(inkscape);
+        sp_input_load_from_preferences();
+    }
 
     /* set language for user interface according setting in preferences */
     Glib::ustring ui_language = prefs->getString("/ui/language");