freebsd-ports/audio/squeezecenter/files/patch-Slim_Utils_Prefs.pm
Brooks Davis 5de5eb0e44 Upgrade to 6.0.2.
The most important fix is probably avoiding database corruption that
caused the wrong artists to be associated with songs/albums.  For full
details, see the Changelog.html or:

http://www.slimdevices.com/su_changelog.html
2005-04-27 22:28:07 +00:00

34 lines
666 B
Perl

$FreeBSD$
--- Slim/Utils/Prefs.pm.orig
+++ Slim/Utils/Prefs.pm
@@ -99,6 +99,10 @@
$path = $Bin . '/Playlists';
+ } elsif (Slim::Utils::OSDetect::OS() eq 'unix') {
+
+ $path = "/var/db/slimserver/playlists";
+
} else {
$path = '';
@@ -131,7 +135,7 @@
} elsif ($os eq 'unix') {
- $CacheDir = $ENV{'HOME'};
+ $CacheDir = "/var/db/slimserver/cache";
}
my @CacheDirs = splitdir($CacheDir);
@@ -714,7 +718,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");