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

feat: kill install process after exiting game #864

Merged

Conversation

lonelyicer
Copy link
Contributor

/// <returns>The number of processes that were killed (0 or 1).</returns>
public int KillInstall()
{
var processes = Process.GetProcessesByName("install");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit hesitant about the way install.exe is being grabbed here. While it makes sense for vrchat because the likelihood of the same application existing is little to none, install can very much encompass more processes that may be unintentionally killed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Detect if install.exe is in VRChat folder with regular expression

@Natsumi-sama Natsumi-sama merged commit 6465dc0 into vrcx-team:master Aug 7, 2024
Natsumi-sama pushed a commit to Natsumi-sama/VRCX that referenced this pull request Aug 7, 2024
* feat: kill install process after exiting game

* Restore en.json

* fix some key incorrect

* gui: update for VRChat OSC Fix

* fix: may incorrectly kill unrelated processes

* fix: pattern incorrect
@lonelyicer lonelyicer deleted the feat/kill-install-with-vrchat-quit branch August 7, 2024 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants