e_start - add ~/Applications/.bin to use for app bin searches

this is here to help for user installed apps
This commit is contained in:
Carsten Haitzler 2014-09-21 00:08:29 +09:00
parent 2b6f3ffc82
commit 9391d261ba
1 changed files with 8 additions and 4 deletions

View File

@ -379,10 +379,8 @@ main(int argc, char **argv)
really_know = EINA_TRUE; really_know = EINA_TRUE;
} }
if (really_know) if (really_know) _env_path_append("PATH", eina_prefix_bin_get(pfx));
_env_path_append("PATH", eina_prefix_bin_get(pfx)); else _env_path_prepend("PATH", eina_prefix_bin_get(pfx));
else
_env_path_prepend("PATH", eina_prefix_bin_get(pfx));
if (valgrind_mode || valgrind_tool) if (valgrind_mode || valgrind_tool)
{ {
@ -406,6 +404,7 @@ main(int argc, char **argv)
if (home) if (home)
{ {
FILE *f; FILE *f;
const char *tmps;
/* if you have ~/.e-mtrack, then the tracker will be enabled /* if you have ~/.e-mtrack, then the tracker will be enabled
* using the content of this file as the path to the mtrack.so * using the content of this file as the path to the mtrack.so
@ -430,6 +429,11 @@ main(int argc, char **argv)
} }
fclose(f); 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 */ /* run e directly now */