summaryrefslogtreecommitdiff
path: root/src/lib/elocation
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2015-01-25 12:44:09 +0100
committerDave Andreoli <dave@gurumeditation.it>2015-01-25 12:44:09 +0100
commit762d4fb551529421df2c2b37efdc7d462f3359b6 (patch)
tree2d51207f459b35773696ad030ffcd7927e1628b3 /src/lib/elocation
parent546d87c8b5de547a6ecbe579a08910981deac8a0 (diff)
Efreet: do not get confused by path ending with / in XDG_* vars
This @fix the parsing of dirs from the xdg env vars. Now always remove the leading / char from the paths. This was causing lots of trouble on my system, where XDG_DATA_DIRS is: /usr/local/share/enlightenment:/usr/local/share:/usr/local/share/:/usr/share/ At first /usr/local/share was added 2 times in the list, one with the / and one witout, causing a double lookup for each file. Secondly the icon cache was totally unusable as the cached paths ended up as: /usr/share//icons/Mint-X/places/32/folder.svg. The double / in there was making the cache lookup to fail and anways return the biggest icon available. Causing a big system slowdown whe searching for icons. As a bonus the function now use eina_str_split instead of the custom splitting code that require a bad special handling for the last item.
Diffstat (limited to 'src/lib/elocation')
0 files changed, 0 insertions, 0 deletions