06-01-2020, 05:08 AM
(05-31-2020, 03:55 PM)koparthur Wrote:(05-31-2020, 02:12 PM)spikerguy Wrote:(05-31-2020, 08:41 AM)koparthur Wrote: Hi,This needs paprefs with pulseaudio on network enabled right?
Here is my configuration of /usr/local/bin/chromium-armhf, with sound control (in Bluetooth too) :
Code:#!/usr/bin/env bash
addrip="$(hostname -i | grep -v '127.0.0.1' | awk '{ print $1}')"
echo "Enabling XHost Forwarding"
xhost +local:docker
echo "Searching for Docker image ..."
DOCKER_IMAGE_ID=$(docker images -q hthiemann/chromium-armhf:latest | head -n 1)
echo "Found and using ${DOCKER_IMAGE_ID}"
docker run --rm --privileged \
-e DISPLAY=unix$DISPLAY \
-e PULSE_SERVER=tcp:${addrip}:4713 \
-e PULSE_COOKIE_DATA=`pax11publish -d | grep --color=never -Po '(?<=^Cookie: ).*'` \
-v chromium_home:/home \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v /dev:/dev -v /run:/run \
-v /etc/machine-id:/etc/machine-id \
--ipc=host \
${DOCKER_IMAGE_ID}
If it helps anyone.
Nice I wanted to use something similar thanks for the code.
Yes, and you have to activate that in Paprefs (sorry it's in french) :
I activated the PulseAudio server (Papref) and modified /usr/local/bin/chromium-armhf, it works fine.
The only problem is that if the IPv4 of the PBP changes, the sound doesn't work anymore and you have to restart Chromium.
The only problem is that if the IPv4 of the PBP changes, the sound doesn't work anymore and you have to restart Chromium.
If IP changes then a restart is a must as even your internet will stop working. That is how dockers work
Manjaro ARM Team.
Devices: Pinebook Pro & PinePhone.
Devices: Pinebook Pro & PinePhone.