I run Fedora with GNOME and recently installed Viber for linux. It's very good and all is working just fine.
As Viber is not open-source software, I decided to run it as another user to make sure that it doesn't have access to my files without my concent, by creating a user:group viber:viber
. If I try to open from inside Viber files that belong to me or any other user, it can't read them. Goal achieved but partly. Now, I stumbled against another problem, which is Viber works only with messages and when I try to make a call, it says, that it can't find neither microphone nor speakers? It feels that I know why (I run X Server (GNOME) as myself and Viber as viber:viber (user:group) ).
How to make Viber run as viber:viber
and at the same time, to let it use microphone and speakers, while running GNOME session as myusername:myusername
?
SELinux solutions are also welcome but with concrete examples! chroot is not the solution, as it will lead, as I understand, to the same problem as described above.
EDIT 1:
The exec for running it is: su - viber -c /opt/viber/Viber