[StereoTool] Saving presets fails #4171
Replies: 7 comments 1 reply
-
Hi, Stereo Tool developer here. This is most likely a rights issue. We try to save in $HOME/.st_plugin.presets (with st_plugin the name of the plugin without the .so at the end). Depending on where and under which user account you're running things, it could be that that location isn't writable. To test if this is indeed the issue (and as a temporary workaround): Make your home directory writable for anything (chmod 777), then check if such a directory is created. (You may need to restart Stereo Tool for that). Don't forget to restore the original rights after this. |
Beta Was this translation helpful? Give feedback.
-
So the Liquidsoap user that's created by the .deb package gets This is interesting because according to: liquidsoap/.github/debian/postinst Line 25 in 4dc4d24 the homedir is /var/cache/liquidsoap but that never gets created.
|
Beta Was this translation helpful? Give feedback.
-
Creating the
For the record: the directory always seems to be |
Beta Was this translation helpful? Give feedback.
-
Oh. I guess our Linux code has a bug due to which it gets the name of the host application instead of its own name... I'll put that on our todo list. But that doesn't affect the issue itself. |
Beta Was this translation helpful? Give feedback.
-
My hotfix keeps expanding. Due to the non-writeable homedir of Liquidsoap it was necessary to create and chown the following directories:
And the following file to get ST to save it's settings.
I defined I expected StereoTool to save its settings in the settings file that is specified in the This all is a bit of a mess. There's no point in defining a preset in the .liq configuration if ST has a hardcoded path for it. The |
Beta Was this translation helpful? Give feedback.
-
I think that, in general, it's not reasonable to assume that all users have a It would be nice if the autosave feature could have a more flexible way to set the destination than relying on the presence of the home directory. |
Beta Was this translation helpful? Give feedback.
-
With 2.3.0 things seem to have changed. The homedir for the liquidsoap user is no longer In the current StereoTool release there's still the problem with the name of the host application being used. But according to @hansvanzutphen that would be fixed in the next release. It's still challenging to sync presets with volumes in docker containers. Because when mounting the directories and files StereoTool saves to in the container to the local server they get owned by root again. |
Beta Was this translation helpful? Give feedback.
-
Description
I'm not sure if this is a Liquidsoap or StereoTool problem. But since StereoTool doesn't have a public bug tracker, I'll start here.
When loading StereoTool in Liquidsoap, there's an option to save the preset via the web interface. Which is great, since it's a pain in the ass manually editing the preset file.
Steps to reproduce
Load StereoTool via
You have to define a pre-built preset with at least the web interface enabled and your ip whitelisted, otherwise it's impossible to configure StereoTool via it's web interface.
Configure the settings. Go to 'Select preset' and push 'Save current settings as preset'. This error will show up.
Expected behavior
Being able to save the preset.
Liquidsoap version
Liquidsoap build config
Installation method
From official packages in the release artifacts
Additional Info
Tested with StereoTool 10.41
Beta Was this translation helpful? Give feedback.
All reactions