From: dooglus Date: Tue, 29 Jan 2008 10:57:15 +0000 (+0000) Subject: If environment variable SYNFIG_DISABLE_AUTOMATIC_DOCUMENT_CREATION is set, don't... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=823db6d3004c792ca4377ed0fe5606a0f74f716a;p=synfig.git If environment variable SYNFIG_DISABLE_AUTOMATIC_DOCUMENT_CREATION is set, don't create a blank document on startup, even if no documents were specified on the command line. I'll add proper configuration items within the gui for this and other recent changes soon. git-svn-id: http://svn.voria.com/code@1523 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/app.cpp b/synfig-studio/trunk/src/gtkmm/app.cpp index cef305a..288ac76 100644 --- a/synfig-studio/trunk/src/gtkmm/app.cpp +++ b/synfig-studio/trunk/src/gtkmm/app.cpp @@ -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."));