Fix Linux Modding Detection (plus ci changes) - #385
Conversation
…d windows server version to see if windows build rahhh
Removed redundant Python dependency installation step.
|
this peak |
|
ignore the large amount of commits if merging i would say squash and merge i was too lazy to download and didn't have enough space |
This comment has been minimized.
This comment has been minimized.
|
I went through this in some depth because #379 is a real annoyance, and I think there are a few things worth raising before it lands. I could not test on Linux — no machine to try it on — so everything below is read out of the sources rather than observed, and I would be glad to be shown wrong on the first point. The path may already contain what the fix prepends
char* module::getFilePath(pid_t processId)
{
char *path = new char[150];
sprintf(path, "/proc/%d/cwd", processId);
readlink(path, path, 150);
sprintf(path, "%s/%s", path, get_process_name_by_pid(processId));
return path;
}It already reads the which the kernel resolves as Also: if the Flatpak case is about reaching into another mount namespace, The root cause looks like it is in memoryjs, which is @OhMyGuus' own forkLook again at those three lines.
That next
The CI changes look supersededThis PR was opened against a nightly on Node 16.14.2, where node-gyp needed
A rebase on current nightly would probably let both CI changes be dropped. Smaller things
None of this is meant to discourage the change — the bug is real, it has been open a year, and you are the only person who has gone after it. I just think the fix wants to be one level down, in memoryjs. Disclaimer: this review was produced with AI assistance (Claude Code). Every code citation above was checked against the actual sources in this repository and in the pinned memoryjs fork, and the CI claim against a live workflow run — but as noted, none of it was executed on Linux, which is exactly where it matters. Treat it as a careful reading, not a test result. 🤖 Generated with Claude Code |
Fixes #379
This pull request fixes mod detection on linux! (both with among us non sandboxed and flatpaked)
also changes windows server from 2025 to 2022 for github actions so building still works (as well as adding a python dep so it builds)
also merge and push when accepted