Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wine game detection on Linux #35

Open
ArtyIF opened this issue Jun 21, 2023 · 5 comments
Open

Wine game detection on Linux #35

ArtyIF opened this issue Jun 21, 2023 · 5 comments
Labels
enhancement New feature or request process

Comments

@ArtyIF
Copy link

ArtyIF commented Jun 21, 2023

Currently, Windows games running via Wine or Proton don't seem to be detected on Linux. I imagine this can be solved by scanning for all the Wine and Proton processes and looking at their arguments for the EXEs running. However, I'm not well versed with this project enough to fix it myself yet.

@ArtyIF
Copy link
Author

ArtyIF commented Jun 21, 2023

I might've narrowed down the issue. As it turns out, the EXE launched is already in the output of ps. However, the way it's launched in arRPC only shows processes for the current terminal session, not the user. There needs to be an additional -u <username> argument. If I'm right, I'll make a PR.

@ArtyIF ArtyIF changed the title Support for Wine and Proton Fix game detection on Linux Jun 21, 2023
@CanadaHonk
Copy link
Contributor

I didn't have that issue. Also, it isn't that simple as arRPC uses /proc/{pid}/exe to get the binary path, which will probably result in a Wine path.

@ArtyIF
Copy link
Author

ArtyIF commented Jun 21, 2023

You're right. I misinterpreted the output. It does link to wine-preloader. However, cmdline has the path to the EXE.

image

@miathetrain
Copy link

Are you still having this issue? Detecting wine games and such works perfectly for me using my fork. My code is probably messy.
https://github.com/cannibalmaid/arrpc

@CanadaHonk CanadaHonk changed the title Fix game detection on Linux Wine game detection on Linux Aug 3, 2023
@CanadaHonk CanadaHonk added process enhancement New feature or request labels Aug 13, 2023
@sull324
Copy link

sull324 commented Jan 15, 2024

No process are detected using the latest git version but if i use https://github.com/cannibalmaid/arrpc fork everything work fine and is detected.

using latest arch linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request process
Projects
None yet
Development

No branches or pull requests

4 participants