
$FreeBSD: ports/audio/slimserver/files/patch-Slim_Utils_Prefs.pm,v 1.5 2006/10/05 02:56:56 brooks Exp $

--- Slim/Utils/Prefs.pm.orig
+++ Slim/Utils/Prefs.pm
@@ -392,6 +392,10 @@
 
 		$path = $Bin . '/Playlists';
 
+	} elsif (Slim::Utils::OSDetect::OS() eq 'unix') {
+
+		$path = "/var/db/slimserver/playlists";
+
 	} else {
 
 		$path = '';
@@ -424,7 +428,7 @@
 
 	} elsif ($os eq 'unix') {
 
-		$CacheDir = catdir($ENV{'HOME'},'Cache');
+		$CacheDir = "/var/db/slimserver/cache";
 	}
 
 	my @CacheDirs = splitdir($CacheDir);
@@ -1014,7 +1018,7 @@
 	} elsif (Slim::Utils::OSDetect::OS() eq 'win')  {
 		$prefsPath = $Bin;
 	} else {
-	 	$prefsPath = $ENV{'HOME'};
+	 	$prefsPath = "/var/db/slimserver";
 	}
 	
 	$::d_prefs && msg("The default prefs directory is $prefsPath\n");
