Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 2 of 2

Hybrid View

  1. #1
    Senior Member erland's Avatar
    Join Date
    Dec 2005
    Location
    Sweden
    Posts
    10,840

    Getting directories for SqueezePlay ?

    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.
    Erland Isaksson (My homepage)
    (Developer of many plugins/applets (both free and commercial).
    If you like to encourage future presence on this forum and/or third party plugin/applet development, consider purchasing some plugins)

    Interested in the future of music streaming ? ickStream - A world of music at your fingertips.

  2. #2
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    19,125

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •