discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=fbde0824d1960f890550d816ac9d21c0459ff984

commit fbde0824d1960f890550d816ac9d21c0459ff984
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Thu Jan 29 12:43:20 2015 -0500

    Revert "Do not add /usr/share twice for XDG_DATA_DIRS"
    
    This reverts commit e3eda1d690240e3754432ebba540114479e721ed.
    
    hardcoding directory paths is not a solution that I want to see used for 
this issue.
---
 src/bin/e_main.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/src/bin/e_main.c b/src/bin/e_main.c
index 27eabb7..733219d 100644
--- a/src/bin/e_main.c
+++ b/src/bin/e_main.c
@@ -126,13 +126,7 @@ _xdg_data_dirs_augment(void)
    if (!p) return;
 
    s = getenv("XDG_DATA_DIRS");
-
-   // if our prefix is already /usr we should not append /usr/share here yet
-   if (strcmp(p, "/usr") == 0)
-     snprintf(newpath, sizeof(newpath), "%s", e_prefix_data_get());
-   else
-     snprintf(newpath, sizeof(newpath), "%s:%s/share", e_prefix_data_get(), p);
-
+   snprintf(newpath, sizeof(newpath), "%s:%s/share", e_prefix_data_get(), p);
    if (s)
      {
         if (strncmp(s, newpath, strlen(newpath)))

-- 


Reply via email to