[Amarok] Add check for correct collection scanner version.

Mark Kretschmann kretschmann at kde.org
Mon Jan 18 08:58:49 CET 2010


On Mon, Jan 18, 2010 at 8:42 AM, Martin Aumueller <aumuell at reserv.at> wrote:
> On Monday 18 January 2010 08:07:12 Mark Kretschmann wrote:
>> On Sun, Jan 17, 2010 at 2:06 PM, Kevin Funk <krf at gmx.de> wrote:
>> > FYI: Be sure to check for the right path where the binary resides (best to
>> > implement this in a global method, tbh).
>> > See ScanManager.cpp:67-68 (already had problems with this when installing
>> > Amarok in user space, etc).
>>
>> TBH, I don't really understand why this is needed. If the scanner is
>> in $PATH, then it should be found, no?
>
> To me it makes sense: if Amarok has been installed to PREFIX (and has been started from PREFIX), then the collection scanner from PREFIX should be used. And not the first one found in $PATH - could be from a different Amarok version.
>
> How about not installing the collection scanner to PREFIX/bin but to PREFIX/libexec or whatever?

Hmm. Myself I'm also installing Amarok in my $HOME. However, of course
I have $HOME/kde/bin in my $PATH, so everything works fine.

I can't really see how or why anyone would do it differently, but
maybe I'm missing something. Anyway, if someone wants to add the
method that Kevin proposed (I guess a public static method would be
ideal), please go ahead.

-- 
Mark Kretschmann
Amarok Developer
Fellow of the Free Software Foundation Europe
www.kde.org - amarok.kde.org - www.fsfe.org


More information about the Amarok-devel mailing list