From: gouldtj Date: Tue, 3 Jul 2007 04:13:31 +0000 (+0000) Subject: r15736@tres: ted | 2007-07-02 21:11:39 -0700 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f51078cf7f78d1fee377c5fe5bc277cc5b2e056f;p=inkscape.git r15736@tres: ted | 2007-07-02 21:11:39 -0700 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. --- diff --git a/src/extension/implementation/script.cpp b/src/extension/implementation/script.cpp index 826da0b8e..98ea9fcee 100644 --- a/src/extension/implementation/script.cpp +++ b/src/extension/implementation/script.cpp @@ -914,7 +914,7 @@ Script::execute (const std::list &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(),