Problem:
When start e17 with a clean profile, you will have xterm and firefox in 
~/.e/e/applications/bar/default/.order :
xterm.desktop
firefox.desktop

Now when you drop a new icon on the ibar, your .order file will look
like this:
/home/brian.miculcy/.e/e/applications/all/xterm.desktop
/home/brian.miculcy/.e/e/applications/all/firefox.desktop
someotherapp.desktop

The problem with this is, that the files with a path aren't loaded
anymore. This was a bug in e_order.c - i fixed that.
Another problem is that the files in ~/.e/e/applications/all/ aren't
monitored, a solution would be to monitor files directly if there is a
path given, this way you could store files wherever you like, you just
need to give a full path.

Greets,
Brian 'morlenxus' Miculcy
Index: e_order.c
===================================================================
RCS file: /var/cvs/e/e17/apps/e/src/bin/e_order.c,v
retrieving revision 1.20
diff -u -r1.20 e_order.c
--- e_order.c   10 Apr 2007 07:25:25 -0000      1.20
+++ e_order.c   31 May 2007 10:50:33 -0000
@@ -190,20 +190,18 @@
                       Efreet_Desktop *desktop;
                       
                       desktop = NULL;
-                      if ((dir) && (buf[0] != '/'))
-                        {
-                           snprintf(buf2, sizeof(buf2), "%s/%s", dir, buf);
-                           desktop = efreet_desktop_get(buf2);
-                        }
+                      if (buf[0] == '/')
+                   desktop = efreet_desktop_get(buf);
                       if (!desktop)
                         {
                            snprintf(buf2, sizeof(buf2), 
                                     "%s/.e/e/applications/all/%s",
-                                    e_user_homedir_get(), buf);
+                                    e_user_homedir_get(), ecore_file_get_file 
(buf));
                            desktop = efreet_desktop_get(buf2);
                         }
+                       
                       if (!desktop)
-                        desktop = efreet_util_desktop_file_id_find(buf);
+                        desktop = 
efreet_util_desktop_file_id_find(ecore_file_get_file (buf));
                       if (desktop) eo->desktops = 
evas_list_append(eo->desktops, desktop);
                    }
               }
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to