Bugzilla – Bug 444
cachedir default not properly set on Unix
Last modified: 2008-12-18 11:51:19 UTC
There is now a --cachedir command line option for telling the server where to store the cache. If that option is not given, the defaultCacheDir() function in Utils/Prefs.pm is supposed to determine a reasonable default. However, on Unix systems it doesn't manage to do so. The following patch sets the Unix default cachedir to the home directory. Index: Prefs.pm =================================================================== RCS file: /cvsroot/slim/server/Slim/Utils/Prefs.pm,v retrieving revision 1.76 diff -u -r1.76 Prefs.pm --- Prefs.pm 7 Jul 2004 03:38:18 -0000 1.76 +++ Prefs.pm 12 Jul 2004 19:45:58 -0000 @@ -68,8 +68,11 @@ sub defaultCacheDir { my $CacheDir = catdir($Bin,'Cache'); - if (Slim::Utils::OSDetect::OS() eq 'mac') { + my $os = Slim::Utils::OSDetect::OS(); + if ($os eq 'mac') { $CacheDir = catdir($ENV{'HOME'}, '/Library/Caches/SlimServer'); + } elsif ($os eq 'unix') { + $CacheDir = $ENV{'HOME'}; } my @CacheDirs = splitdir($CacheDir); pop @CacheDirs;
Created attachment 66 [details] patch setting default cachedir on Unix to the home directory
patch accepted for next nightly.
There are 536 bugs in the database with targets of '---' that were fixed prior to new year 2006. I am setting them to targets of 6.2.1 to keep them from showing up in my queries.
Routine bug db maintenance; removing old versions which cause confusion. I apologize for the inconvenience.