It doesn't seem to be possible to override the role of an application (or any other property set by the application) with environment variables. Using PULSE_PROP_OVERRIDE doesn't work, because it's applied on the context proplist only. The context proplist is copied to the stream proplist, but if the application sets any properties itself, those will of course override the context properties. Maybe it would be a good idea to add new environment variables for setting stream properties: PULSE_STREAM_PROP, PULSE_STREAM_PROP_OVERRIDE etc.
I changed my mind about the preferable fix: I think it would be better to just make sure that PULSE_PROP_OVERRIDE overrides also the stream properties.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/115.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.