Revert "Do not add /usr/share twice for XDG_DATA_DIRS"
This reverts commite3eda1d690
. hardcoding directory paths is not a solution that I want to see used for this issue. (cherry picked from commitfbde0824d1
) Signed-off-by: Thanatermesis <thanatermesis@gmail.com>
This commit is contained in:
parent
58da664ccf
commit
60b003245b
|
@ -139,13 +139,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)))
|
||||
|
|
Loading…
Reference in New Issue