]> glassweightruler.freedombox.rocks Git - waydroid.git/blobdiff - scripts/run-container.sh
anbox: Get socket paths from generated props
[waydroid.git] / scripts / run-container.sh
index 05f1a08514e62967ac08a70a9478269352bcb09c..051b4295d6292bdd8d5c97c2e72acb2015b48b96 100644 (file)
@@ -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