Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_apps.c e_main.c 


Log Message:


1. new app file examples, 2. app parsing code... etc. etc.

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_apps.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- e_apps.c    2 Dec 2004 06:35:37 -0000       1.3
+++ e_apps.c    2 Dec 2004 07:00:30 -0000       1.4
@@ -79,7 +79,7 @@
 e_app_new(char *path, int scan_subdirs)
 {
    E_App *a;
-   
+
    a = evas_hash_find(_e_apps, path);
    if (a)
      {
@@ -479,17 +479,24 @@
               {
                  int ok = 0;
                  
-                 if (buf[len - 1] == '\n') buf[len - 1] = 0;
-                 for (l = files; l; l = l->next)
+                 if (buf[len - 1] == '\n')
+                   {
+                      buf[len - 1] = 0;
+                      len--;
+                   }
+                 if (len > 0)
                    {
-                      if (!strcmp(buf, l->data))
+                      for (l = files; l; l = l->next)
                         {
-                           free(l->data);
-                           files = evas_list_remove_list(files, l);
-                           break;
+                           if (!strcmp(buf, l->data))
+                             {
+                                free(l->data);
+                                files = evas_list_remove_list(files, l);
+                                break;
+                             }
                         }
+                      files2 = evas_list_append(files2, strdup(buf));
                    }
-                 files2 = evas_list_append(files2, strdup(buf));
               }
          }
        fclose(f);
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_main.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- e_main.c    2 Dec 2004 04:24:54 -0000       1.4
+++ e_main.c    2 Dec 2004 07:00:30 -0000       1.5
@@ -386,16 +386,17 @@
             return 0;
          }
      }
+   
    /* FIXME: THIS is a hack to get people started!!! */
-/*   
-   snprintf(buf, sizeof(buf), "%s/.e/e/applications/favorite/eterm.eet", 
homedir);
-   if (!e_file_exists(buf))
-     snprintf(buf, sizeof(buf), "tar -C %s/.e/e/applications/favorite/ zxvf 
%s/data/other/favorite_apps.tar.gz", homedir, PACKAGE_DATA_DIR);
-   snprintf(buf, sizeof(buf), "%s/.e/e/applications/bar/", homedir);
+   snprintf(buf, sizeof(buf), "%s/.e/e/applications/all/eterm.eet", homedir);
    if (!e_file_exists(buf))
-     snprintf(buf, sizeof(buf), "tar -C %s/.e/e/applications/bar/ zxvf 
%s/data/other/favorite_apps.tar.gz", homedir, PACKAGE_DATA_DIR);
+     snprintf(buf, sizeof(buf), 
+             "gzip -d -c < %s/data/other/applications.tar.gz |"
+             "(cd %s/.e/e/ ; tar -xf -)", 
+             PACKAGE_DATA_DIR,
+             homedir);
    free(homedir);
- */
+   
    return 1;
 }
 




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to