Re: Recommended Way to locate executable folder and preferences folder on Linux

foxesden <foxesden.asuqbc-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]> Tue, 25 Oct 2022 12:54:21 +0000
Newsgroups gmane.music.equipment.slimdevices.devel
Organization Logitech Squeezebox Forums
Message-ID <[email protected]>
gordonb3 wrote: 
> Should relocation of the folders be required to circumvent OS specific
> write blocks you can ... As an alternative you could create a symlink to
> a writeable destination but personally I would avoid such hacks.

That is what I have been trying to do. I managed to get the plugin
working on LMS on piCorePlayer but that was by using a symlink script on
startup that mapped the links each time. I thought it was quite a neat
hack ;). But I would prefer a solution which worked out of the box so to
speak. 

I used to do a lot of coding, but I have been managing software
development teams/projects rather than coding these days. I am trying to
get up-to-speed with perl, which I have never used professionally.

I have been working on the Inguz plugin, and tidied up the front end a
couple of years ago, then I update the c# binaries to Visual Studio on
.Net Core 6 (i.e. latest version) and this can be compiled as a
standalone runtime on pretty much any modern device (crucially this can
be cross-compiled on windows).

The thing that trips people up is getting the binaries installed and
then getting the preferences file located in the correct place, and to
sort this out I need to revisit the plugins perl code. From my
perspective, the code is a bit spaghetti and does not have enough
comments and it is tricky to setup a perl dev environment for
maintaining plugins, as they rely on the whole Squeezebox platform. 

I have managed to get Ralphy's Strawberry perl port running on my
desktop, with my plugin working. So maybe I can get somewhere...


------------------------------------------------------------------------
foxesden's Profile: http://forums.slimdevices.com/member.php?userid=56286
View this thread: http://forums.slimdevices.com/showthread.php?t=116956