Enlightenment CVS committal Author : englebass Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_fwin.c Log Message: Use new exec code to exec .desktop file =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_fwin.c,v retrieving revision 1.30 retrieving revision 1.31 diff -u -3 -r1.30 -r1.31 --- e_fwin.c 24 Mar 2007 17:42:12 -0000 1.30 +++ e_fwin.c 24 Mar 2007 21:27:34 -0000 1.31 @@ -537,9 +537,9 @@ _e_fwin_file_exec(E_Fwin *fwin, E_Fm2_Icon_Info *ici, E_Fwin_Exec_Type ext) { char buf[4096]; - E_App *a; + Efreet_Desktop *desktop; - /* FIXME: execute file ici with either a temrinal, the shell, or directly + /* FIXME: execute file ici with either a terminal, the shell, or directly * or open the .desktop and exec it */ switch (ext) { @@ -562,12 +562,8 @@ break; case E_FWIN_EXEC_DESKTOP: snprintf(buf, sizeof(buf), "%s/%s", e_fm2_real_path_get(fwin->fm_obj), ici->file); - a = e_app_new(buf, 0); - if (a) - { - e_app_exec(fwin->win->border->zone, a, NULL, NULL, NULL); - e_object_unref(E_OBJECT(a)); - } + desktop = efreet_desktop_get(buf); + if (desktop) e_exec(fwin->win->border->zone, desktop, NULL, NULL, NULL); break; default: break; ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs