summaryrefslogtreecommitdiff
path: root/legacy/efreet
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-06-18 12:12:44 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-06-18 12:12:44 +0000
commit672730ee4411ebdbbd2a07da49390bf44ca8a2c4 (patch)
tree269b83b85e250e71265d340f7eed15e2e651c803 /legacy/efreet
parent0c4febd6f2695165443240da17f19f391c69d99a (diff)
only parse retarded canonical ini fields when not using strict spec compliance
SVN revision: 72387
Diffstat (limited to 'legacy/efreet')
-rw-r--r--legacy/efreet/src/lib/efreet_desktop.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/legacy/efreet/src/lib/efreet_desktop.c b/legacy/efreet/src/lib/efreet_desktop.c
index d455a8e5a9..9293f9429f 100644
--- a/legacy/efreet/src/lib/efreet_desktop.c
+++ b/legacy/efreet/src/lib/efreet_desktop.c
@@ -810,7 +810,9 @@ efreet_desktop_generic_fields_parse(Efreet_Desktop *desktop, Efreet_Ini *ini)
810 const char *not_show_in = NULL, *only_show_in = NULL; 810 const char *not_show_in = NULL, *only_show_in = NULL;
811 811
812 val = efreet_ini_localestring_get(ini, "Name"); 812 val = efreet_ini_localestring_get(ini, "Name");
813#ifndef STRICT_SPEC
813 if (!val) val = efreet_ini_localestring_get(ini, "_Name"); 814 if (!val) val = efreet_ini_localestring_get(ini, "_Name");
815#endif
814 if (val) desktop->name = strdup(val); 816 if (val) desktop->name = strdup(val);
815 else 817 else
816 { 818 {
@@ -822,7 +824,9 @@ efreet_desktop_generic_fields_parse(Efreet_Desktop *desktop, Efreet_Ini *ini)
822 if (val) desktop->generic_name = strdup(val); 824 if (val) desktop->generic_name = strdup(val);
823 825
824 val = efreet_ini_localestring_get(ini, "Comment"); 826 val = efreet_ini_localestring_get(ini, "Comment");
827#ifndef STRICT_SPEC
825 if (!val) val = efreet_ini_localestring_get(ini, "_Comment"); 828 if (!val) val = efreet_ini_localestring_get(ini, "_Comment");
829#endif
826 if (val) desktop->comment = strdup(val); 830 if (val) desktop->comment = strdup(val);
827 831
828 val = efreet_ini_localestring_get(ini, "Icon"); 832 val = efreet_ini_localestring_get(ini, "Icon");