pulseaudio snap does not include pacmd
Bug #1656923 reported by
Oliver Grawert
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snappy-hwe-snaps |
Won't Fix
|
High
|
Unassigned |
Bug Description
it would be helpful if all the tools from the pulseaudio-utils package could be included in the pulseaudio snap. i.e. to select a specific sink you need to use pacmd which is currently not provided by the snap, yet pactl, parec and paplay are included.
Changed in snappy-hwe-snaps: | |
status: | New → Triaged |
importance: | Undecided → High |
To post a comment you must log in.
Hi @ogra,
Agree that it would helpful to have all the tools. (sink|source) NAME' meets your needs?
I'm not sure if 'pactl [options] set-default-
For me, i use pactl to change card profile, set volume and some basic operations.
I tried to include pacmd in my test version, and got some apparmor denies.
With devmode, it works, then I found that some files and capabilities are not included in the pulseaudio interface.
## confined PATH=/var/ run/pulse PULSE_SYSTEM=1 pulseaudio.pacmd info
$ sudo env PULSE_LOG=999 PULSE_RUNTIME_
Failed to open PID file '/run/pulse/pid': Permission denied
No PulseAudio daemon running, or not running as session daemon.
## devmode PATH=/var/ run/pulse PULSE_SYSTEM=1 pulseaudio.pacmd info
$sudo env PULSE_LOG=999 PULSE_RUNTIME_
Memory blocks currently allocated: 1, size: 63.9 KiB.
Memory blocks allocated during the whole lifetime: 31, size: 996.4 KiB.
Memory blocks imported from other processes: 0, size: 0 B.
Memory blocks exported to other processes: 0, size: 0 B.
[snipped]
## apparmor log, devmode 4.600:1241177) : apparmor="ALLOWED" operation="open" profile= "snap.pulseaudi o.pacmd" name="/ run/pulse/ pid" pid=22589 comm="pacmd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 4.600:1241178) : apparmor="ALLOWED" operation="ptrace" profile= "snap.pulseaudi o.pacmd" pid=22589 comm="pacmd" requested_ mask="trace" denied_mask="trace" peer="snap. pulseaudio. pulseaudio" 4.600:1241179) : apparmor="ALLOWED" operation="open" profile= "snap.pulseaudi o.pacmd" name="/ run/pulse/ pid" pid=22589 comm="pacmd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 4.600:1241180) : apparmor="ALLOWED" operation="ptrace" profile= "snap.pulseaudi o.pacmd" pid=22589 comm="pacmd" requested_ mask="trace" denied_mask="trace" peer="snap. pulseaudio. pulseaudio" 4.904:1241181) : apparmor="ALLOWED" operation="connect" profile= "snap.pulseaudi o.pacmd" name="/ run/pulse/ cli" pid=22589 comm="pacmd" requested_mask="wr" denied_mask="wr" fsuid=0 ouid=0 4.904:1241182) : apparmor="ALLOWED" operation= "file_perm" profile= "snap.pulseaudi o.pacmd" name="/ run/pulse/ cli" pid=22589 comm="pacmd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 4.904:1241183) : apparmor="ALLOWED" operation= "file_perm" profile= "snap.pulseaudi o.pacmd" name="/ run/pulse/ cli" pid=22589 comm="pacmd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
Jan 20 04:22:44 localhost kernel: [304306.229446] audit: type=1400 audit(148488616
Jan 20 04:22:44 localhost kernel: [304306.229563] audit: type=1400 audit(148488616
Jan 20 04:22:44 localhost kernel: [304306.229744] audit: type=1400 audit(148488616
Jan 20 04:22:44 localhost kernel: [304306.229789] audit: type=1400 audit(148488616
Jan 20 04:22:44 localhost kernel: [304306.530768] audit: type=1400 audit(148488616
Jan 20 04:22:44 localhost kernel: [304306.533462] audit: type=1400 audit(148488616
Jan 20 04:22:44 localhost kernel: [304306.533490] audit: type=1400 audit(148488616