blob: 866f1c52387a99e6d4b1ea8ac2c3eb27f1948118 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
$FreeBSD$
--- Slim/Utils/Prefs.pm.orig
+++ Slim/Utils/Prefs.pm
@@ -59,6 +59,8 @@
$path = $ENV{'HOME'} . '/Music/Playlists';
} elsif (Slim::Utils::OSDetect::OS() eq 'win') {
$path = $Bin . '/Playlists';
+ } elsif (Slim::Utils::OSDetect::OS() eq 'unix') {
+ $path = "/var/db/slimserver/playlists";
} else {
$path = '';
}
@@ -72,7 +74,7 @@
if ($os eq 'mac') {
$CacheDir = catdir($ENV{'HOME'}, '/Library/Caches/SlimServer');
} elsif ($os eq 'unix') {
- $CacheDir = $ENV{'HOME'};
+ $CacheDir = "/var/db/slimserver/cache";
}
my @CacheDirs = splitdir($CacheDir);
pop @CacheDirs;
@@ -605,7 +607,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");
|