The following code is used to create/address the file 'sugarcube.db' in
the SbS 'Prefs' directory. It works on Windows OS's but appears not to
work with UNIX/Linux.

my $path ||= Slim::Utils::OSDetect::dirsFor('prefs');
$path = $path . '\plugin\sugarcube.db';

In UNIX/Linux it creates/addresses the file 'Prefs\plugin\sugarcube.db'
in the SbS root directory.  Please note that there is no pathing here -
that is the filename. 

Anyone have any idea how to code it so that it will work as intended
for WIndows and UNIX/Linux? i.e. to create/address the file
'sugarcube.db' in the SbS 'Prefs' directory.

As you can see, this is for the SugarCube plugin. Hopefully I'm not
stepping on Charles Parkers' toes here - I'll pass the code on to him
if it works.

TIA

Bob


-- 
bobertuk

1 x Touch - SC 7.6.0 - SSOTS v4.91
1 x Radio
1 x Boom
Lavry DA-10 DAC
QNAP TS-509 3.3.6 build 1110T
Starfish Pre-amp : Based on NAIM
Heavily modified NAIM NAP 250 Power-amp
Behringer DEQ2496
Linn Isobarik DMS
------------------------------------------------------------------------
bobertuk's Profile: http://forums.slimdevices.com/member.php?userid=30376
View this thread: http://forums.slimdevices.com/showthread.php?t=87490

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

Reply via email to