--- xine-lib-1.1.0/src/input/libdvdnav/remap.c.tmpdir 2003-08-26 01:51:40 +0400 +++ xine-lib-1.1.0/src/input/libdvdnav/remap.c 2006-01-14 12:47:05 +0300 @@ -189,9 +189,9 @@ remap_t *map; /* Build the map filename */ - home = getenv("HOME"); assert(home); + home = getenv("TMPDIR"); assert(home); strncpy(fname, home, sizeof(fname)); - strncat(fname, "/.dvdnav/", sizeof(fname)); + strncat(fname, "/dvdnav/", sizeof(fname)); strncat(fname, title, sizeof(fname)); strncat(fname, ".map", sizeof(fname)); --- xine-lib-1.1.0/src/input/input_dvd.c.tmpdir 2005-07-11 15:35:41 +0400 +++ xine-lib-1.1.0/src/input/input_dvd.c 2006-01-14 12:53:31 +0300 @@ -1789,8 +1789,10 @@ "playing scrambled DVDs."), 20, NULL, NULL); xine_setenv("DVDCSS_METHOD", decrypt_modes[mode], 0); - css_cache_default = (char *)malloc(strlen(xine_get_homedir()) + 10); - sprintf(css_cache_default, "%s/.dvdcss/", xine_get_homedir()); + char *xine_tmp_dir; + xine_tmp_dir = getenv("TMPDIR"); + css_cache_default = (char *)malloc(strlen(xine_tmp_dir) + 10); + sprintf(css_cache_default, "%s/dvdcss/", xine_tmp_dir); css_cache = config->register_string(config, "media.dvd.css_cache_path", css_cache_default, _("path to the title key cache"), _("Since cracking the copy protection of scrambled DVDs can "