Is there some way to get various directories in SqueezePlay ?
Something similar to the "dirsFor" function we have in Slim::Utils::OSDetect on the server side ?
I just realized that applets are installed on different places on SqueezePlay on linux compared to Windows. On Windows they seems to be in:
./lua/applets/
While they on Linux (svn installation) are in:
./share/jive/applets
Is there any way to get these paths correctly in my applet ?
I suppose there is a reason why the structure is different on Windows ? or is it just by accident ?
If there isn't any function to get these directories, is there some way I can check if SqueezePlay runs on Windows or Linux ? I tried System.getArch() but it just returned "unknown" on Windows.
Results 1 to 2 of 2
-
2010-04-13, 01:25 #1
Getting directories for SqueezePlay ?
Erland Isaksson (My homepage)
Lead platform developer of ickStream Music Platform - A world of music at your fingertips
(Also developer of many plugins/applets)
-
2010-04-13, 01:46 #2
Getting directories for SqueezePlay ?
> Is there some way to get various directories in SqueezePlay ?
This I don't know. But it might be a reasonable enhancement.
> If there isn't any function to get these directories, is there some way
> I can check if SqueezePlay runs on Windows or Linux ? I tried
> System.getArch() but it just returned "unknown" on Windows.
You could probably try something using os.getenv(), requsting some well known environment variable.
Keep in mind I'm probably more of a Lua newbie than you :-)
--
Michael