From 9391d261ba555dbdb828b549ec719ab5e3b0b785 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Sun, 21 Sep 2014 00:08:29 +0900 Subject: [PATCH] e_start - add ~/Applications/.bin to use for app bin searches this is here to help for user installed apps --- src/bin/e_start_main.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/bin/e_start_main.c b/src/bin/e_start_main.c index fa3c0544e..571477f2b 100644 --- a/src/bin/e_start_main.c +++ b/src/bin/e_start_main.c @@ -379,10 +379,8 @@ main(int argc, char **argv) really_know = EINA_TRUE; } - if (really_know) - _env_path_append("PATH", eina_prefix_bin_get(pfx)); - else - _env_path_prepend("PATH", eina_prefix_bin_get(pfx)); + if (really_know) _env_path_append("PATH", eina_prefix_bin_get(pfx)); + else _env_path_prepend("PATH", eina_prefix_bin_get(pfx)); if (valgrind_mode || valgrind_tool) { @@ -406,6 +404,7 @@ main(int argc, char **argv) if (home) { FILE *f; + const char *tmps; /* if you have ~/.e-mtrack, then the tracker will be enabled * using the content of this file as the path to the mtrack.so @@ -430,6 +429,11 @@ main(int argc, char **argv) } fclose(f); } + tmps = getenv("XDG_DATA_HOME"); + if (tmps) snprintf(buf, sizeof(buf), "%s/Applications/.bin", tmps); + else snprintf(buf, sizeof(buf), "%s/Applications/.bin", home); + if (really_know) _env_path_append("PATH", buf); + else _env_path_prepend("PATH", buf); } /* run e directly now */