From b4f2bc353b69b3f533a1479050c210a263993dff Mon Sep 17 00:00:00 2001 From: albeu Date: Sat, 29 Oct 2005 12:16:46 +0000 Subject: 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 --- get_path.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'get_path.c') 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; -- cgit v1.2.3