Firejail: qtox no sound with firejail

Created on 27 Jan 2019  路  2Comments  路  Source: netblue30/firejail

  • firejail version 0.9.56
  • qTox 1.16.3

When using qTox with firejail on my Manjaro Linux Deepin I can't hear any sound.

Here is my /etc/firejail/qtox.profile:

# Firejail profile for qtox
# Description: Powerful Tox client written in C++/Qt that follows the Tox design guidelines
# This file is overwritten after every install/update
# Persistent local customizations
include /etc/firejail/qtox.local
# Persistent global definitions
include /etc/firejail/globals.local

noblacklist ${HOME}/.config/tox

include /etc/firejail/disable-common.inc
include /etc/firejail/disable-devel.inc
include /etc/firejail/disable-interpreters.inc
include /etc/firejail/disable-passwdmgr.inc
include /etc/firejail/disable-programs.inc

mkdir ${HOME}/.config/tox
whitelist ${DOWNLOADS}
whitelist ${HOME}/.config/tox
include /etc/firejail/whitelist-common.inc
include /etc/firejail/whitelist-var-common.inc

caps.drop all
ipc-namespace
netfilter
nodvd
nogroups
nonewprivs
noroot
notv
nou2f
protocol unix,inet,inet6
seccomp
shell none
tracelog

disable-mnt
private-bin qtox
private-etc fonts,resolv.conf,ld.so.cache,localtime,ca-certificates,ssl,pki,crypto-policies
private-dev
private-tmp

noexec ${HOME}
noexec /tmp

and when I run qtox this is some of the output that I get:
```
Reading profile /etc/firejail/qtox.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-interpreters.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/whitelist-common.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Parent pid 14323, child pid 14324
Warning: skipping pki for private /etc
Warning: skipping crypto-policies for private /etc
Private /etc installed in 26.11 ms
1 program installed in 13.01 ms
Warning: cleaning all supplementary groups
Warning: cleaning all supplementary groups
Warning: /sbin directory link was not blacklisted
Warning: /usr/sbin directory link was not blacklisted
Blacklist violations are logged to syslog
Child process initialized in 122.01 ms
[22:15:42.705 UTC] persistence/settings.cpp:133 : Debug: "Loading settings from /home/daniel/.config/tox/qtox.ini"
[22:15:42.721 UTC] ipc.cpp:61 : Debug: Our global IPC ID is ********
[22:15:42.721 UTC] main.cpp:258 : Debug: commit: 8eed684c37bd711de2ca4bd863f5f0509edcdc2d
[22:15:47.043 UTC] persistence/profile.cpp:117 : Debug: Loading tox save "/home/daniel/.config/tox/danisantos.tox"
[22:15:47.139 UTC] persistence/settings.cpp:462 : Debug: "Saving global settings at /home/daniel/.config/tox/qtox.ini"
[22:15:47.152 UTC] persistence/settings.cpp:335 : Debug: Loading personal settings from "/home/daniel/.config/tox/danisantos.ini"
[22:15:47.152 UTC] nexus.cpp:87 : Debug: Starting up
[22:15:47.457 UTC] core/core.cpp:202 : Debug: Loading user profile
[22:15:47.457 UTC] core/toxoptions.cpp:63 : Debug: Core starting with IPv6 enabled
[22:15:48.769 UTC] widget/systemtrayicon.cpp:83 : Debug: Using the Qt backend
[22:15:50.202 UTC] core/core.cpp:357 : Debug: "Connecting to ***"
[22:15:50.203 UTC] core/core.cpp:357 : Debug: "Connecting to
***"
[22:15:54.702 UTC] core/core.cpp:357 : Debug: "Connecting to ***"
[22:15:54.703 UTC] core/core.cpp:357 : Debug: "Connecting to
***"
[22:15:58.153 UTC] core/core.cpp:326 : Debug: Connected to the DHT
[22:15:58.154 UTC] persistence/profile.cpp:329 : Debug: Saving tox save to "/home/daniel/.config/tox/danisantos.tox"

Most helpful comment

Can you
sudo sed -i 's/private-etc /private-etc machine-id,/' /etc/firejail/qtox.profile;

All 2 comments

Can you
sudo sed -i 's/private-etc /private-etc machine-id,/' /etc/firejail/qtox.profile;

I believe it was a misconfiguration on qTox. I had alsa on my device detection and it worked before firejail. Now I have changed to the device that I use and it works.
Sorry for the late reply

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ericschdt picture ericschdt  路  3Comments

HulaHoopWhonix picture HulaHoopWhonix  路  4Comments

SkewedZeppelin picture SkewedZeppelin  路  3Comments

Vincent43 picture Vincent43  路  3Comments

bryce-lynch picture bryce-lynch  路  4Comments