From d5a1bf0276ed706d24fab4520ac5418ca1cebb34 Mon Sep 17 00:00:00 2001 From: Erfan Abdi Date: Mon, 14 Jun 2021 10:19:24 +0430 Subject: [PATCH] anbox: Get socket paths from generated props --- scripts/run-container.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/run-container.sh b/scripts/run-container.sh index 05f1a08..051b429 100644 --- a/scripts/run-container.sh +++ b/scripts/run-container.sh @@ -50,8 +50,11 @@ fi chmod 666 /dev/anbox-*binder chmod 777 /dev/ashmem -# Wayland socket permissions -chmod 777 -R /run/user/32011 +# Wayland and pulse socket permissions +XDG_PATH=`cat anbox.prop | grep anbox.xdg_runtime_dir | cut -f 2- -d "="` +PULSE_PATH=`cat anbox.prop | grep anbox.pulse_runtime_path | cut -f 2- -d "="` +chmod 777 -R $PULSE_PATH +chmod 777 -R $XDG_PATH # Set sw_sync permissions chmod 777 /dev/sw_sync -- 2.47.3