Enlightenment CVS committal Author : raster Project : e17 Module : apps/entrance
Dir : e17/apps/entrance/src/client Modified Files: entrance_config.c Log Message: commands is actually a list these days. =================================================================== RCS file: /cvs/e/e17/apps/entrance/src/client/entrance_config.c,v retrieving revision 1.42 retrieving revision 1.43 diff -u -3 -r1.42 -r1.43 --- entrance_config.c 26 Oct 2006 08:14:20 -0000 1.42 +++ entrance_config.c 29 Oct 2006 02:57:42 -0000 1.43 @@ -482,8 +482,9 @@ struct _Entrance_Config_And_Path *ep = data; Entrance_Config *e; Entrance_X_Session *exs = NULL; - char *command = NULL; - + Ecore_List *commands; + char *command; + char path[PATH_MAX]; if (!filename) return; @@ -492,8 +493,6 @@ if (!e) return; - char path[PATH_MAX]; - snprintf(path, PATH_MAX, "%s/%s", ep->path, filename); Ecore_Desktop *ed = ecore_desktop_get(path, NULL); @@ -503,7 +502,18 @@ /* Get the full command. */ /* We are not passing a list of files, so we only expect one command. */ - command = ecore_desktop_get_command(ed, NULL, 1); + commands = ecore_desktop_get_command(ed, NULL, 1); + if (commands) + { + char *temp; + + temp = ecore_list_first(commands); + if (temp) + command = strdup(temp); + ecore_list_destroy(commands); + } + if (!command) + return; if ((exs = entrance_x_session_new(ed->name, ed->icon, command))) { /* Sessions found earlier in the FDO search sequence override those ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs