Revert "Include /usr/local too in the no-duplication of XDG_DATA_DIRS"
This reverts commit ae3410a0ba
.
This commit is contained in:
parent
323f41122e
commit
9f36dc1b43
|
@ -127,8 +127,8 @@ _xdg_data_dirs_augment(void)
|
|||
|
||||
s = getenv("XDG_DATA_DIRS");
|
||||
|
||||
// don't add e_prefix path if it is already /usr or /usr/local
|
||||
if ((strcmp(p, "/usr") == 0) || (strcmp(p, "/usr/local") == 0))
|
||||
// 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);
|
||||
|
|
Loading…
Reference in New Issue