Code

r15736@tres: ted | 2007-07-02 21:11:39 -0700
authorgouldtj <gouldtj@users.sourceforge.net>
Tue, 3 Jul 2007 04:13:31 +0000 (04:13 +0000)
committergouldtj <gouldtj@users.sourceforge.net>
Tue, 3 Jul 2007 04:13:31 +0000 (04:13 +0000)
 Changing the working directory for scripts from the temporary directory
 to the current working directory (the one Inkscape was called with).  I
 don't think this is the 'right' way to do this -- but the win32 people
 kinda need it.

src/extension/implementation/script.cpp

index 826da0b8e2fe5f2ac83504a6db90fe33cf060430..98ea9fceeba115055814c2e0fc03ecc5875cac6a 100644 (file)
@@ -914,7 +914,7 @@ Script::execute (const std::list<std::string> &in_command,
     int stdout_pipe, stderr_pipe;
 
     try {
-        Glib::spawn_async_with_pipes(Glib::get_tmp_dir(), // working directory
+        Glib::spawn_async_with_pipes(Glib::get_current_dir(), // working directory
                                      argv,  // arg v
                                      Glib::SPAWN_SEARCH_PATH /*| Glib::SPAWN_DO_NOT_REAP_CHILD*/,
                                      sigc::slot<void>(),