netstar pushed a commit to branch master.

http://git.enlightenment.org/apps/edi.git/commit/?id=a24b6e00ad36ef1bee41867fce3eca3a6b917276

commit a24b6e00ad36ef1bee41867fce3eca3a6b917276
Author: Alastair Poole <[email protected]>
Date:   Thu Aug 13 18:15:28 2020 +0100

    edi_main: fix ecore_exe_run call.
---
 src/bin/edi_main.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/bin/edi_main.c b/src/bin/edi_main.c
index 9843363..f7abeca 100644
--- a/src/bin/edi_main.c
+++ b/src/bin/edi_main.c
@@ -1245,7 +1245,12 @@ static void
 _edi_menu_scm_log_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
                      void *event_info EINA_UNUSED)
 {
-   ecore_exe_run(eina_slstr_printf("edi_scm --log ."), NULL);
+   char *workdir = getcwd(NULL, 0);
+
+   chdir(edi_project_get());
+   ecore_exe_run(eina_slstr_printf("edi_scm --log"), NULL);
+   chdir(workdir);
+   free(workdir);
 }
 
 static void

-- 


Reply via email to