welcome: Much better exec and then exit.

This was causing all sorts of complications. Just fork/exec
edi and then exit from welcome.
This commit is contained in:
Alastair Poole 2019-12-20 22:20:54 +00:00
parent d45bb357ef
commit c403f76825
1 changed files with 5 additions and 2 deletions

View File

@ -100,13 +100,16 @@ _edi_message_open(const char *message, Eina_Bool deletable)
static void static void
_edi_welcome_project_open(const char *path, const unsigned int _edi_creating) _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_path = path;
_edi_message_open(_("That project directory no longer exists"), EINA_TRUE); _edi_message_open(_("That project directory no longer exists"), EINA_TRUE);
} }
else else
evas_object_del(_welcome_window); {
ecore_exe_run(eina_slstr_printf("edi %s", path), NULL);
exit(0);
}
} }
static void static void