patch from From: Mark-Willem Jansen <markwillem@hotmail.com>

use desktop file path field for cwd.



SVN revision: 59701
This commit is contained in:
Mark-Willem Jansen 2011-05-26 10:27:21 +00:00 committed by Carsten Haitzler
parent 8a7e1bd463
commit 54d7870c61
1 changed files with 12 additions and 1 deletions

View File

@ -210,7 +210,18 @@ _e_exec_cb_exec(void *data, Efreet_Desktop *desktop, char *exec, int remaining)
// ECORE_EXE_PIPE_AUTO | ECORE_EXE_PIPE_READ | ECORE_EXE_PIPE_ERROR |
// ECORE_EXE_PIPE_READ_LINE_BUFFERED | ECORE_EXE_PIPE_ERROR_LINE_BUFFERED,
// inst);
exe = ecore_exe_run(exec, inst);
if (desktop->path)
{
if (!getcwd(buf, sizeof(buf))) return NULL;
if (chdir(desktop->path)) return NULL;
exe = ecore_exe_run(exec, inst);
if (chdir(buf)) return NULL;
}
else
{
exe = ecore_exe_run(exec, inst);
}
e_util_library_path_restore();
if (penv_display)
{