ValveSoftware / Dota-2

Tracker for issues specific to Linux and Mac in the Reborn client. If you have a general issue or non-system-specific feature request please go to dev.dota2.com
471 stars 38 forks source link

Discord cannot detect Dota2 application for screen sharing #2038

Open nims11 opened 2 years ago

nims11 commented 2 years ago

Your system information

Please describe your issue in as much detail as possible:

Dota2 doesn't list as an application when trying to screen share applications with discord. All other applications/window show up. Few months ago, I had no problem doing so. Currently, the only workaround is to share the full screen or launch dota2 with gamescope (discord shows up gamescoped dota2 as an application).

Also doesn't work with running Discord via chromium/firefox. I have tried on both wayland and X.

Steps for reproducing this issue:

  1. Launch dota
  2. Join a voice channel in Discord and click on share screen.
  3. Dota2 doesn't show up in the "Applications" tab of screen sharing options.
eazy12 commented 2 years ago

It also shows up while forcing Proton usage, but Proton itself does not work with Dota 2 for me. So forcing Proton might be potential temporary fix for this problem.

I also want to add that sharing entire screen with Discord leads to graphical artifacts around top bar (it partially is missed and flickers).

If it worked few months ago it means it broke in the patch where Valve deprecated OpenGL for Windows and made some changes in the client for Linux.

My system information https://gist.github.com/eazy12/b5edcafa4295320774d0211f5a67901d

deanrih commented 2 years ago

I also want to add some information that graphic API being used does not matter to the outcome, but other Dota Source 2 games like Artifact (at least the Classic one) and Dota Underlords are detected by Discord

Edit: My system information:

https://gist.github.com/deanrih/72da4722d51347c6a4322f1ba3b4804b

meistuss commented 2 years ago

I found solution: 1) Run dota2 2)Change to window mode 3)You can see dota2 in detected application for sharing 4) After sharing you can change to full screen mode I had problem with my cusor, it was big after changing to full screen mode. Right-click Dota 2 in your Steam library, click "Properties", "Set launch options", and add: -cursor_scale_percent 100