Re: set media.role for VMware client

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 19.01.22 um 06:46 schrieb Sean Greenslade:
On Mon, Jan 17, 2022 at 10:38:31PM +0100, sben1783 wrote:
Hi there,

I'm using VMware Horizon client from kubuntu to work on my companies windows machine. My idea was to play some music from my own machine while doing
monkey work within VMware. I was very happy to read about the "cork"
mechanism in order to mute that music as soon as I get a business call or am attending an online meeting within VMware. Unfortunately, I haven't been able to figure out how to set the "media.role" for the VMware binary. I see, f.ex., that vlc has media.role=video, but the VMware client doesn't have
any. I tried to set it via a .desktop file, but that fails - probably
because the VMware application I start (vmware-view) spawns some other
binary and the media.role property is not passed on to the child process?

I think using the .desktop file is probably your best bet (though I
haven't tried it myself; this is just from a quick scan of the PA code).
You can see specifically which binary has spawned the pulseaudio
connection by running the command "pacmd list-sink-inputs" and looking
at the application.process.binary attribute. [...]

That did the trick! I created a
  /usr/share/applications/vmware-remotemks.desktop
with
  X-PulseAudio-Properties=media.role=phone
and now the "cork" works. Thank you very  much!

BUT: it doesn't "uncork" when my phone call within vmware is done. I think this is supposed to work..? My media player just stays muted forever. Any
hints here? Where would I have to start looking to possibly find details
why it doesn't unmute the media player?

Thx, Ben



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux