Re: [E-devel] Path key in Desktop entry file not used
On Mon, 16 May 2011 15:39:03 +0200 Mark-Willem Jansen markwil...@hotmail.com said: thanks! in svn it is! :) 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 -- - Codito, ergo sum - I code, therefore I am -- The Rasterman (Carsten Haitzler)ras...@rasterman.com -- vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Path key in Desktop entry file not used
The right solution is to create a function inside efreet which handles path. Either fix what's currently there, or add some new function(s). S. On 05/16/2011 10:46 PM, Mark-Willem Jansen wrote: 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
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
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 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) { -- 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
Re: [E-devel] Path key in Desktop entry file not used
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
[E-devel] Path key in Desktop entry file not used
Dear all, A few days ago I installed a game that also placed a .desktop file on my Desktop and in the games menu. But both entries give an error 126 when it tries to start the launcher. This launcher script picks the executable to run depending on the architect. The launcher script uses relative paths to execute the game. I went into the .desktop file and found Path key that was set to the launcher's path. I did some tests and found that enlightenment was not setting the working directory to this Path key before executing the command. For the .desktop file on my Desktop it was using the working directory ~/Desktop. When using the entry in the menu it uses my home as the working directory. Both are wrong when the path key is set and the type key is equal to Application. I also test the same .desktop files under gnome. From which the game was launched without problems. I do not know if this bug is know or that it has been fixed. I tried to sweep the bug report and the mailting lists. But the search keys are very general and gave me abundant hits. At this moment I am running e17 from svn revision 56278. Kind regards, Mark-Willem Jansen P.S.: This is the second time I send this e-mail. The first time it did not show up in the archives. -- 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
Re: [E-devel] Path key in Desktop entry file not used
Yes. it seems to be a bug in efreet (?). On Mon, May 9, 2011 at 3:10 PM, Mark-Willem Jansen markwil...@hotmail.comwrote: Dear all, A few days ago I installed a game that also placed a .desktop file on my Desktop and in the games menu. But both entries give an error 126 when it tries to start the launcher. This launcher script picks the executable to run depending on the architect. The launcher script uses relative paths to execute the game. I went into the .desktop file and found Path key that was set to the launcher's path. I did some tests and found that enlightenment was not setting the working directory to this Path key before executing the command. For the .desktop file on my Desktop it was using the working directory ~/Desktop. When using the entry in the menu it uses my home as the working directory. Both are wrong when the path key is set and the type key is equal to Application. I also test the same .desktop files under gnome. From which the game was launched without problems. I do not know if this bug is know or that it has been fixed. I tried to sweep the bug report and the mailting lists. But the search keys are very general and gave me abundant hits. At this moment I am running e17 from svn revision 56278. Kind regards, Mark-Willem Jansen P.S.: This is the second time I send this e-mail. The first time it did not show up in the archives. -- 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 -- 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
Re: [E-devel] Path key in Desktop entry file not used
Hi, Do I still need to file a bug on the tracker system, or is this entry in the mailing list enough. -- Mark-Willem Jansen -- 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
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