Skip to content

Commit

Permalink
Some more macOS cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelherger committed Sep 7, 2024
1 parent 159766a commit 6e72719
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Slim/Utils/OS/OSX.pm
Original file line number Diff line number Diff line change
Expand Up @@ -72,22 +72,15 @@ sub initDetails {
$class->{osDetails}->{'os'} = 'Darwin';
$class->{osDetails}->{'uid'} = getpwuid($>);

# XXX - do we still need this? They're empty on my system, and created if needed in some other place anyway
for my $dir (
'Library/Application Support/Squeezebox',
'Library/Application Support/Squeezebox/Plugins',
'Library/Application Support/Squeezebox/Graphics',
'Library/Application Support/Squeezebox/html',
'Library/Application Support/Squeezebox/IR',
'Library/Logs/Squeezebox'
) {

eval 'mkpath("$ENV{\'HOME\'}/$dir");';
}

unshift @INC, $ENV{'HOME'} . "/Library/Application Support/Squeezebox";
unshift @INC, "/Library/Application Support/Squeezebox";

return $class->{osDetails};
}

Expand Down Expand Up @@ -153,7 +146,6 @@ sub dirsFor {
} elsif ($dir =~ /^(?:Graphics|HTML|IR|Plugins|MySQL)$/) {

push @dirs, "$ENV{'HOME'}/Library/Application Support/Squeezebox/$dir";
push @dirs, "/Library/Application Support/Squeezebox/$dir";
push @dirs, catdir($Bin, $dir);

} elsif ($dir eq 'log') {
Expand Down

0 comments on commit 6e72719

Please sign in to comment.