forked from enlightenment/enlightenment
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:
parent
2b6f3ffc82
commit
9391d261ba
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue