Bug 8598 - hard-coded scanner paths prevent using multiple versions of SC
: hard-coded scanner paths prevent using multiple versions of SC
Status: RESOLVED WORKSFORME
Product: Logitech Media Server
Classification: Unclassified
Component: Misc
: unspecified
: PC Linux (other)
: -- minor (vote)
: ---
Assigned To: Unassigned bug - please assign me!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-06-28 17:32 UTC by Peter Watkins
Modified: 2008-06-29 07:30 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments
implement the desired behavior (607 bytes, patch)
2008-06-28 17:32 UTC, Peter Watkins
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Watkins 2008-06-28 17:32:55 UTC
Created attachment 3505 [details]
implement the desired behavior

Slim/Music/Import.pm tries to use copies of squeezecenter-scanner in the preferred vendor locations if possible. This causes problems if you want to install the official Linux package but also occasionally shut that down and run a different version from a tarball, SVN checkout, etc. -- as I like to do before committing to an upgrade of my main system.

I think the behavior should probably be to only use the preferred vendor location if there's not a scanner.pl in the $Bin directory. 1) When running an offcial package, SC7 would only find squeezecenter-scanner in the preferred location, and it would continue to work properly. 2) When running from a tarball in a home directory, SC7 would find $Bin/scanner.pl and ignore any squeezecenter-scanner that might exist elsewhere -- and also work properly.
Comment 1 Mark Miksis 2008-06-28 19:55:18 UTC
This is similar to bug 6827 (which I only vaguely recall at the moment).  Probably a shortcoming of my fix there.  If necessary, I'll help look at this in the next day or so.
Comment 2 Peter Watkins 2008-06-29 07:30:14 UTC
Hold on, let me verify this should still be a bug, test to make sure the fix for bug 6827 didn't address this sufficiently. I'll re-open if it still looks like a problem.