Triode;536482 Wrote: 
> I believe its because of where the installer puts squeezeplay which is
> in the location of a normal application (C:\Program Files or
> equivalent).  This means we should not install additional files to this
> location when it is run as a user.  It should definately be fixable,
> just got missed.
> 
The main problem is that it has a different structure under the
executable, the Linux version and the real device has a structure
like:
share/jive/applets
share/jive/jive
share/jive/fonts

But the Windows installation looks different, it has a structure like:
lua/applets
lua/jive
fonts

Anyway, the structure isn't the main problem, the main problem is that
I haven't found any way to check which platform I run on. I tried using
the System.getArch() method but it just returns "unknown" on Windows so
it doesn't feel reliable.

I need to have a way to detect the path to the following directories:
- fonts (To check if a font file exists and load it)
- The directory where my applets is installed (To read and store cached
files)
- The parent directory to the one where my applet is installed (To
store files that should survive a applet upgrade) (This is a bit less
important since it's only used by Patch Installer which won't work on
Windows anyway since it uses Linux patch command)


-- 
erland

Erland Isaksson
'My homepage' (http://erland.isaksson.info) (Install my plugins through
Extension Downloader)
(Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse,
Custom Scan,  Custom Skip, Multi Library, Title Switcher and Database
Query plugins'
(http://wiki.erland.isaksson.info/index.php/Category:SlimServer))
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=68269

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to