Enlightenment CVS committal

Author  : englebass
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_order.c 


Log Message:
If a .desktop isn't in a standard location store the full path in the
.order file.

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_order.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- e_order.c   6 Apr 2007 11:21:34 -0000       1.16
+++ e_order.c   6 Apr 2007 11:41:23 -0000       1.17
@@ -3,11 +3,6 @@
  */
 #include "e.h"
 
-/*
- * TODO:
- * - Update E_Order object if a .desktop file becomes available
- */
-
 /* local subsystem functions */
 static void _e_order_free       (E_Order *eo);
 static void _e_order_cb_monitor (void *data, Ecore_File_Monitor *em, 
Ecore_File_Event event, const char *path);
@@ -233,13 +228,17 @@
        Efreet_Desktop *desktop;
        const char *id;
 
-       /* TODO: This only allows us to save .desktop files which are in
-        * the default paths. If it isn't, we should copy it to the users
-        * application directory. Or store the full path in the .order file */
        desktop = l->data;
        id = efreet_util_path_to_file_id(desktop->orig_path);
-       if (!id) continue;
-       fprintf(f, "%s\n", id);
+       if (id)
+         {
+            fprintf(f, "%s\n", id);
+         }
+       else
+         {
+            /* TODO: Check if the file is in ~/.e/e/applications/all */
+            fprintf(f, "%s\n", desktop->orig_path);
+         }
      }
 
    fclose(f);



-------------------------------------------------------------------------
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

Reply via email to