How-to run pulseaudio as root in F96CE_XFCE_FUSILLI 4.4
Following up on a report by @pp4mnklinux that when Simjet running as root, audio doesn't work viewtopic.php?p=87663#p87663
On XFCE_FUSILLI pulseaudio runs as 'spot' and I've found that's the reason for no audio when running Slimjet as root (with --no-sandbox
).
(and there may be other audio problems too because of running pulseaudio as 'spot', not sure though)
Here's how I changed to pulseaudio running as "root" on XFCE_FUSILLI 4.4:
1) Open /root/.xinitrc (hidden file) with text-editor and find the line elif [ -e /usr/bin/pulseaudio ]; then
(probably on line 79)
then change the three lines below that to:
Code: Select all
sh -c "pulseaudio --kill > /dev/null 2>&1; pulseaudio --start --log-target=syslog"
export PULSE_SERVER=unix:/tmp/runtime-root/pulse/native
export PULSE_COOKIE=/root/.config/pulse/cookie
and save the file.
2) Open /usr/bin/pa-applet with text-editor, find the line XUSER=spot
(line 9), change to:
XUSER=root
and save the file
3) Restart X
4) Check by running Slimjet "as root" if audio plays, WORKS!!!???
Above steps work OK for me, but if anyone knows a better way, please say .