Closed claus007 closed 7 years ago
Depending on the setup of the user, automatically assigning openHAB to the audio group may be a bad idea. Like other peripherals, we should probably add this to a recommended step in the documentation. Would you (and @ThomDietrich) agree?
Could find it's place here: http://docs.openhab.org/installation/linux.html#privileges-for-common-peripherals @claus007 please feel free to add your contribution: https://github.com/openhab/openhab-docs/edit/gh-pages/installation/linux.md
I want to add that "Foremost because there isn't any error logged." sounds like a bug. Would you please file an issue over at https://github.com/eclipse/smarthome/issues/new
Docs changes were merged, I'd still like to encourage @claus007 to file a bug report!
As requested filled out a new error report.
And I also read the "bad idea" - on one hand they're right - but what is the alternative ? You could use pulse audio instead - but this is run either from user currently logged in, or as system daemon, but as far as I know then there is no shared memory available (don't know how bad this is).
BTW: could it be the same with the dialout group when trying to access a serial port ?
There wouldn't be an alternative per se, adding the audio group is the right thing to do for a system user like openhab, and has been added to the setup page for Linux. However, I feel like those wanting to keep strict permissions for openHAB might disagree with adding all system peripherals automatically, especially if there's a chance it will conflict with another service accessing the device.
:-) this looks like a good solution: https://major.io/2007/02/13/chmod-and-the-mysterious-first-octet/
A file with the according rights will be shipped along with openhab. Big advantage is, instead of messing up user rights - there is one file which can be used in the first step - if the user finds a better solution he may also delete this file.
The openhab user created is not a member of the audio group. This is necessary of course to play audio. This is a small issue but if you don't know it can take a while. Foremost because there isn't any error logged.
Linux distro: Ubuntu 16.04