mirror of https://github.com/mpv-player/mpv
Allow the user to set the $MPLAYER_HOME environment variable to point to the location
were they want mplayer to store its configuration stuff. Patch by Nikolai Weibull (nikolai _(dot)_ weibull _(at)_ gmail _(dot)_ com) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16873 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
4bc4473e58
commit
b4f2bc353b
|
@ -36,7 +36,9 @@ char *get_path(char *filename){
|
|||
char *bdl_url_path = NULL;
|
||||
#endif
|
||||
|
||||
if ((homedir = getenv("HOME")) == NULL)
|
||||
if ((homedir = getenv("MPLAYER_HOME")) != NULL)
|
||||
config_dir = "";
|
||||
else if ((homedir = getenv("HOME")) == NULL)
|
||||
#if defined(__MINGW32__)||defined(__CYGWIN__) /*hack to get fonts etc. loaded outside of cygwin environment*/
|
||||
{
|
||||
int i,imax=0;
|
||||
|
|
Loading…
Reference in New Issue