If environment variable SYNFIG_DISABLE_AUTOMATIC_DOCUMENT_CREATION is set, don't...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 29 Jan 2008 10:57:15 +0000 (10:57 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 29 Jan 2008 10:57:15 +0000 (10:57 +0000)
git-svn-id: http://svn.voria.com/code@1523 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/gtkmm/app.cpp

index cef305a..288ac76 100644 (file)
@@ -1198,7 +1198,7 @@ App::App(int *argc, char ***argv):
                        }
 
                // if no file was specified to be opened, create a new document to help new users get started more easily
-               if (!opened_any)
+               if (!opened_any && !getenv("SYNFIG_DISABLE_AUTOMATIC_DOCUMENT_CREATION"))
                        new_instance();
 
                studio_init_cb.task(_("Done."));