From c403f768250bc5d7531986877e5fde7b711badda Mon Sep 17 00:00:00 2001 From: Alastair Poole Date: Fri, 20 Dec 2019 22:20:54 +0000 Subject: [PATCH] welcome: Much better exec and then exit. This was causing all sorts of complications. Just fork/exec edi and then exit from welcome. --- src/bin/screens/edi_welcome.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/bin/screens/edi_welcome.c b/src/bin/screens/edi_welcome.c index 94c8c8d..5a03699 100644 --- a/src/bin/screens/edi_welcome.c +++ b/src/bin/screens/edi_welcome.c @@ -100,13 +100,16 @@ _edi_message_open(const char *message, Eina_Bool deletable) static void _edi_welcome_project_open(const char *path, const unsigned int _edi_creating) { - if (!edi_open(path) && !_edi_creating) + if (!ecore_file_exists(path) && !_edi_creating) { _edi_message_path = path; _edi_message_open(_("That project directory no longer exists"), EINA_TRUE); } else - evas_object_del(_welcome_window); + { + ecore_exe_run(eina_slstr_printf("edi %s", path), NULL); + exit(0); + } } static void