I frequently need to login from my desktop into my laptop using FreeNX, I am able to redirect the audio from session running on the laptop by setting the pulse audio default server using the "padevchooser" applet, setting it to the IP of my desktop.
Is there an easy way to achieve this from the freenx session login ? For example overriding the PA default server from the .bash_profile?
Exporting the current pulseaudio server to a X-session root window can be done with
This will export the currently used source, sink, and configuration of
<server-pa>
to the X11-session window.Switching back to default is done by
We have however no experience and can not test how FreeNX does this and if that command is applicable.
It was easier than I expected, looking into the source code from padevchooser I found that the server can be set from an environment variable, PULSE_SERVER, the following code on my ~/.bash_profile did it: