diff options
author | albeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-10-29 12:16:46 +0000 |
---|---|---|
committer | albeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-10-29 12:16:46 +0000 |
commit | b4f2bc353b69b3f533a1479050c210a263993dff (patch) | |
tree | aef1c16cbd6d0461054cf9025a6011f04eacecf2 /get_path.c | |
parent | 4bc4473e58b397ec34bc9d0a2682f1d0e05a3119 (diff) | |
download | mpv-b4f2bc353b69b3f533a1479050c210a263993dff.tar.bz2 mpv-b4f2bc353b69b3f533a1479050c210a263993dff.tar.xz |
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
Diffstat (limited to 'get_path.c')
-rw-r--r-- | get_path.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |