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

Michael Herger <slim-b/[email protected]> Sun, 23 Oct 2022 15:49:31 +0200
Newsgroups gmane.music.equipment.slimdevices.devel
Message-ID <[email protected]>
> Sorry - still not resolved the issue I was trying to sort out, and is
> there a recommended location to save a plugins own settings? I am
> supporting some old code and on linux it expects config data to be
> written to /usr/share which is off limits to a lot of more recent
> installs. I would assume it needs to be somewhere on the plugin path,
> but not sure exactly where.

You can get the prefs folder and store things there. This folder must 
alway be writable to the LMS user, or LMS would not start:

my $prefsDir = Slim::Utils::Prefs::dir();

I'd recommed you create a sub-folder for your plugin there.