Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/efreet

Dir     : e17/libs/efreet/src/lib


Modified Files:
        efreet_desktop.c 


Log Message:


build it if spec is sloppy - which is it by default

===================================================================
RCS file: /cvs/e/e17/libs/efreet/src/lib/efreet_desktop.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -3 -r1.30 -r1.31
--- efreet_desktop.c    16 Nov 2007 02:35:01 -0000      1.30
+++ efreet_desktop.c    16 Nov 2007 04:55:40 -0000      1.31
@@ -1244,12 +1244,14 @@
 
         p = strchr(p, '%');
     }
+#ifdef SLOPPY_SPEC   
    /* NON-SPEC!!! this is to work around LOTS of 'broken' .desktop files that
     * do not specify %U/%u, %F/F etc. etc. at all. just a command. this is
     * unlikely to be fixed in distributions etc. in the long run as gnome/kde
     * seem to have workarounds too so no one notices.
     */
    if (!flags) flags |= EFREET_DESKTOP_EXEC_FLAG_FULLPATH;
+#endif
    
     return flags;
 }
@@ -1381,6 +1383,7 @@
             p++;
         }
 
+#ifdef SLOPPY_SPEC       
        /* NON-SPEC!!! this is to work around LOTS of 'broken' .desktop files 
that
        * do not specify %U/%u, %F/F etc. etc. at all. just a command. this is
        * unlikely to be fixed in distributions etc. in the long run as 
gnome/kde
@@ -1388,14 +1391,12 @@
        */
        if ((file) && (!file_added))
         {
-           printf("EFREET WARNING:\n"
-                  "  %s\n"
-                  "command:\n"
-                  "  %s\n"
-                  "has no file path/uri spec info for executing this app WITH 
a\n"
-                  "file/uri as a parameter. This is unlikely to be the 
intent.\n"
-                  "please check the .desktop file and fix it by adding a %%U 
or %%F\n"
-                  "or something.",
+           printf("[Efreet]: %s\n"
+                  "  command: %s\n"
+                  "  has no file path/uri spec info for executing this app 
WITH a\n"
+                  "  file/uri as a parameter. This is unlikely to be the 
intent.\n"
+                  "  please check the .desktop file and fix it by adding a %%U 
or %%F\n"
+                  "  or something appropriate.",
                   command->desktop->orig_path, command->desktop->exec);
             if (len >= size - 1)
              {
@@ -1407,6 +1408,7 @@
                                                          &len, command, 'F');
            file_added = 1;
         }
+#endif
         exec[len++] = '\0';
 
         ecore_list_append(execs, exec);



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to