rolnas
rolnas
The problem is that pulseaudio is started from user systemd session process and it doesn't inherit environment from xrdp/startwm.sh. I checked it with "ps axeww". I just stopped user pulseaudio...
PULSE_SCRIPT and XRDP_SOCKET_PATH are system wide, but XRDP_PULSE_* are session specific. Tried to put "systemctl --user stop pulseaudio; pulseaudio --start" in startwm.sh - doesn't work.
Finally I found a working workaround. I put "systemctl --user import-environment" just before exec Xsession lines and it worked.
After many years with SysV background initially I was already in trouble with systemd. With time I'm finding good and bad sides of this solution. pulseaudio is a solution to...
Same problem with netgroup and automount maps.