I just posted a correction to the bug report. If you want to try it,
just modify the laucnhScan function in
/usr/share/perl5/Slim/Music/Import.pm :


Code:
--------------------
    sub launchScan {
  my ($class, $args) = @_;
  
  # Pass along the prefs file - might need to do this for other flags,
  # such as logfile as well.
  if (defined $::prefsfile && -r $::prefsfile) {
  $args->{"prefsfile=$::prefsfile"} = 1;
  }
  
  # Add in the various importer flags
  for my $importer (qw(itunes musicmagic moodlogic)) {
  
  if (Slim::Utils::Prefs::get($importer)) {
  
  $args->{$importer} = 1;
  }
  }
  
  my @scanArgs = map { "--$_" } keys %{$args};
  
  my $command  = "$Bin/scanner.pl";
  
  # Check for different scanner types.
  if (Slim::Utils::OSDetect::OS() eq 'win' && -x "$Bin/scanner.exe") {
  
  $command  = "$Bin/scanner.exe";
  
  } elsif (Slim::Utils::OSDetect::isDebian() && -x
  '/usr/sbin/slimserver-scanner') {
  
  $command  = '/usr/sbin/slimserver-scanner';
  }
  
  # Bug: 3530 - use the same version of perl we were started with.
  if ($Config{'perlpath'} && -x $Config{'perlpath'}) {
  
  unshift @scanArgs, $command;
  $command  = $Config{'perlpath'};
  }
  
  $class->scanningProcess(
  Proc::Background->new($command, @scanArgs)
  );
  
  return 1;
  }
--------------------


-- 
daba
------------------------------------------------------------------------
daba's Profile: http://forums.slimdevices.com/member.php?userid=4679
View this thread: http://forums.slimdevices.com/showthread.php?t=24771

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/unix

Reply via email to