I'm pretty sure it requires patching the code, but this is how I think
it works:
/usr/share/jive/applets/SqueezeCenter/SqueezeCenterApplet.lua:
- The _writeSCPrefsFile function generates the
/etc/squeezecenter/prefs.json file and fills it with the path to use
- As John mentions, there might be other places in the code that also
generates the prefs.json file which the server will use to setup the
music folder.
/usr/squeezecenter/Slim/Utils/OS/SqueezeOS.pm:
- The _checkMediaAtStartup function uses /etc/squeezecenter/prefs.json
to set the audiodir preferences which is later on used for scanning
I haven't looked into this in detail, but I suspect you might need to
patch one or both of these files if you want to do what you want.
A possible alternative to this, that might be even easier, is to setup
a hard coded "bind" mount that bind one of the sub directory to a main
directory directly under /media.
You can create a bind mount like this:
Code:
--------------------
mkdir /media/someotherdir
mount --bind /media/sda2/somedir/someotherdir /media/someotherdir
--------------------
To make this work in a real scenario, you probably need to handle this
in the /etc/udev/* scripts. Something you have to think about when
using bind mounts is that it has to be setup after the device has been
mounted.
Note, I'm not sure the server will pick the right directory under
/media with bind mounts, it might still pick the real mounted directory
and in that case this won't help.
Anyway, I haven't tried any of this, I just took a quick look at the
code and posted my findings here if it helps anyone. I might be
completely wrong about some of these things because I haven't really
tried it and looked into all the details.
--
erland
Erland Isaksson ('My homepage' (http://erland.isaksson.info))
(Developer of 'many plugins/applets'
(http://wiki.slimdevices.com/index.php/User:Erland). If my answer
helped you and you like to encourage future presence on this forum
and/or third party plugin/applet development, 'donations are always
appreciated' (http://erland.isaksson.info/donate))
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=80676
_______________________________________________
Touch mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/touch