On Thu, Jan 29, 2015 at 7:40 PM, Thanatermesis
<thanatermesis.e...@gmail.com> wrote:
>> Are you planning to add all the possible path on earth ?
>
> not really, they are already static entries (so just these ones) that comes
> from the default/fallback XDG_DATA_DIRS standard (if im not wrong), as you
> can see in the middle of the screenshot (snprintf stuff):
> https://www.enlightenment.org/ss/e-54aa94e4da9742.14698270.jpg
>
> so since they are already static values, do you think that is needed to do
> the eina str split loop? if it is, I will improve the patch then

That's what you have on your computer :-) Are you sure every one else
does have the same config. If it was the case, maybe we could just get
rid of that environment variable and hardcode all the path in that
list...

> 2015-01-29 15:23 GMT+01:00 Cedric BAIL <moa.blueb...@gmail.com>:
>
>> Seriously ? That's how you deduplicate content ? Are you planning to add
>> all the possible path on earth ? Use eina str split and check their is no
>> duplicate for real, and remove that patch.
>> Le 29 janv. 2015 13:44, "Samuel F. Baggen" <thanaterme...@gmail.com> a
>> écrit :
>>
>> > princeamd pushed a commit to branch master.
>> >
>> >
>> >
>> http://git.enlightenment.org/core/enlightenment.git/commit/?id=ae3410a0bad31c1850e845eab284540aadb8c65b
>> >
>> > commit ae3410a0bad31c1850e845eab284540aadb8c65b
>> > Author: Thanatermesis <thanaterme...@gmail.com>
>> > Date:   Wed Dec 31 19:12:36 2014 +0100
>> >
>> >     Include /usr/local too in the no-duplication of XDG_DATA_DIRS
>> >
>> >         @fix and improves the previous fix
>> >
>> >     (cherry picked from commit e0dcab584bba0d62b21bafdbbeefae78ccccf3cb)
>> >     Signed-off-by: Deon Thomas <princeamd.el...@gmail.com>
>> > ---
>> >  src/bin/e_main.c | 4 ++--
>> >  1 file changed, 2 insertions(+), 2 deletions(-)
>> >
>> > diff --git a/src/bin/e_main.c b/src/bin/e_main.c
>> > index 27eabb7..d2742f8 100644
>> > --- a/src/bin/e_main.c
>> > +++ b/src/bin/e_main.c
>> > @@ -127,8 +127,8 @@ _xdg_data_dirs_augment(void)
>> >
>> >     s = getenv("XDG_DATA_DIRS");
>> >
>> > -   // if our prefix is already /usr we should not append /usr/share here
>> > yet
>> > -   if (strcmp(p, "/usr") == 0)
>> > +   // don't add e_prefix path if it is already /usr or /usr/local
>> > +   if ((strcmp(p, "/usr") == 0) || (strcmp(p, "/usr/local") == 0))
>> >       snprintf(newpath, sizeof(newpath), "%s", e_prefix_data_get());
>> >     else
>> >       snprintf(newpath, sizeof(newpath), "%s:%s/share",
>> > e_prefix_data_get(), p);
>> >
>> > --
>> >
>> >
>> >
>> >
>>
>> ------------------------------------------------------------------------------
>> Dive into the World of Parallel Programming. The Go Parallel Website,
>> sponsored by Intel and developed in partnership with Slashdot Media, is
>> your
>> hub for all things parallel software development, from weekly thought
>> leadership blogs to news, videos, case studies, tutorials and more. Take a
>> look and join the conversation now. http://goparallel.sourceforge.net/
>> _______________________________________________
>> enlightenment-devel mailing list
>> enlightenment-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming. The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel



-- 
Cedric BAIL

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to