Me again, Just noticed that efreet has it own implementation of executing a program based on it desktop entry. One could use this efreet_desktop_exec() to execute desktop entries from e_exec(). It uses efreet_desktop_command_get() as e_exec() does, but has a different callback function to execute the program namely efreet_desktop_exec_cb().
Unfortunately the callback in efreet seems a bit simple, when you compare it to the one used in e_exec.c. So I am not sure if the implementation is complete, yet. Also the doxygen info states that efreet_desktop_exec will return a Ecore_Exe but I fail to see that. As efreet_desktop_exec() does not return anything and also efreet_desktop_exec_cb() will always return NULL and not the result of ecore_exe_run(). Off course this can all be fixed. So one could use efreet_desktop_exec() inside e_exec(). Just let me know if this is reasonable and I will give it a shot. -- Mark-Willem Jansen ---------------------------------------- From: markwil...@hotmail.com To: enlightenment-devel@lists.sourceforge.net Date: Mon, 16 May 2011 15:39:03 +0200 Subject: Re: [E-devel] Path key in Desktop entry file not used Take two. tabs are expanded and the patch is now attached to the e-mail. -- Mark-Willem Jansen ---------------------------------------- > From: markwil...@hotmail.com > To: s...@tango.flipp.net; enlightenment-devel@lists.sourceforge.net > Date: Mon, 16 May 2011 15:28:18 +0200 > Subject: Re: [E-devel] Path key in Desktop entry file not used > > > okay, > > made a small patch with some help from the IRC channel. > > Looks like the tabs are copied as spaces. > > -- > Mark-Willem Jansen > > Index: src/bin/e_exec.c > =================================================================== > --- src/bin/e_exec.c (revision 56278) > +++ src/bin/e_exec.c (working copy) > @@ -210,7 +210,18 @@ > // 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) > { > > > ---------------------------------------- > > Date: Mon, 9 May 2011 22:00:01 +0200 > > From: s...@tango.flipp.net > > To: enlightenment-devel@lists.sourceforge.net > > Subject: Re: [E-devel] Path key in Desktop entry file not used > > > > On 05/09/2011 12:39 PM, Mark-Willem Jansen wrote: > > > > > > Hi, > > > > > > Do I still need to file a bug on the tracker system, or is this entry in > > > the mailing > > > list enough. > > > > It's enough here. > > > > S. > > > > ------------------------------------------------------------------------------ > > WhatsUp Gold - Download Free Network Management Software > > The most intuitive, comprehensive, and cost-effective network > > management toolset available today. Delivers lowest initial > > acquisition cost and overall TCO of any competing solution. > > http://p.sf.net/sfu/whatsupgold-sd > > _______________________________________________ > > enlightenment-devel mailing list > > enlightenment-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > > > ------------------------------------------------------------------------------ > Achieve unprecedented app performance and reliability > What every C/C++ and Fortran developer should know. > Learn how Intel has extended the reach of its next-generation tools > to help boost performance applications - inlcuding clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel ------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel ------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel