protonscr

setcap works with Wine but not with Proton (Proton "ignores" it)

protonopen
ValveSoftware/Proton#4586 · opened 2021-02-02 by Liemaeu · updated 2021-02-02 · 0 comments · github
1 matching comments, n / p to jump
LLiemaeu 2021-02-02 github

I want to get the ping working (for Battlefield 4). I use Kubuntu, Proton 5.13-5 and wine-devel from WineHQ systemwide.

When I run:

wine cmd.exe

with my systemwide wine-devel, and in the CMD e.g.:

ping google.com

I get a timeout error. When I now run:

sudo setcap cap_net_raw+epi /opt/wine-devel/bin/wine-preloader

sudo setcap cap_net_raw+epi /opt/wine-devel/bin/wine64-preloader

sudo setcap cap_net_raw+epi /opt/wine-devel/bin/wineserver

and after this:

wine cmd.exe

and in this again e.g.:

ping google.com

Ping now works fine as it should.

When I run ping with Proton 5.13:

STEAM_COMPAT_DATA_PATH=/home/richard/.proton/ /home/richard/.steam/steam/steamapps/common/Proton\ 5.13/proton run cmd.exe

and in it e.g.:

ping google.com

I get a timeout error (as expected). When I now apply the setcap commands for Proton 5.13:

sudo setcap cap_net_raw+epi /home/richard/.steam/steam/steamapps/common/Proton\ 5.13/dist/bin/wine-preloader

sudo setcap cap_net_raw+epi /home/richard/.steam/steam/steamapps/common/Proton\ 5.13/dist/bin/wine64-preloader

sudo setcap cap_net_raw+epi /home/richard/.steam/steam/steamapps/common/Proton\ 5.13/dist/bin/wineserver

And after this:

STEAM_COMPAT_DATA_PATH=/home/richard/.proton/ /home/richard/.steam/steam/steamapps/common/Proton\ 5.13/proton run cmd.exe

And in it e.g.:

ping google.com

I get a timeout error again. It doesn't seam to work with Proton.

When I now check the caps:

wine cmd.exe

getpcaps <PID of CMD.exe with wine-devel>

I get the output:

<PID of CMD.exe with wine-devel>: = cap_net_raw+epi

But when I do the same for Proton:

STEAM_COMPAT_DATA_PATH=/home/richard/.proton/ /home/richard/.steam/steam/steamapps/common/Proton\ 5.13/proton run cmd.exe

getpcaps <PID of CMD.exe with Proton 5.13>

I get the output:

<PID of CMD.exe with Proton 5.13>: =

The caps don't seam to work with Proton.

Proton versions

Launch options