diff --git a/get_path.c b/get_path.c index 7443cd341b..47b50da400 100644 --- a/get_path.c +++ b/get_path.c @@ -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;