only parse retarded canonical ini fields when not using strict spec compliance
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 18 Jun 2012 12:12:44 +0000 (12:12 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 18 Jun 2012 12:12:44 +0000 (12:12 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/efreet@72387 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/efreet_desktop.c

index d455a8e..9293f94 100644 (file)
@@ -810,7 +810,9 @@ efreet_desktop_generic_fields_parse(Efreet_Desktop *desktop, Efreet_Ini *ini)
     const char *not_show_in = NULL, *only_show_in = NULL;
 
     val = efreet_ini_localestring_get(ini, "Name");
+#ifndef STRICT_SPEC
     if (!val) val = efreet_ini_localestring_get(ini, "_Name");
+#endif
     if (val) desktop->name = strdup(val);
     else
     {
@@ -822,7 +824,9 @@ efreet_desktop_generic_fields_parse(Efreet_Desktop *desktop, Efreet_Ini *ini)
     if (val) desktop->generic_name = strdup(val);
 
     val = efreet_ini_localestring_get(ini, "Comment");
+#ifndef STRICT_SPEC
     if (!val) val = efreet_ini_localestring_get(ini, "_Comment");
+#endif
     if (val) desktop->comment = strdup(val);
 
     val = efreet_ini_localestring_get(ini, "Icon");