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

Unofficial Series Code #22

Open
wants to merge 47 commits into
base: main
Choose a base branch
from

Conversation

evildarkarchon
Copy link
Contributor

This is the code from my "Unofficial Series", contains all the changes from #20

This way, it won't instantly go from stopping to stopped.
I also moved the xedit regex out of the function so it doesn't compile every time the while loop polls it.
Also, redid some code for correctness and removed some redundancies.
Also moved the lower-case mapped lists to the info dataclass.
Consolidated the code to identify if a process or file name is xedit or not into a single function. It also uses mapped sets of xedit_list_universal and xedit_list_specific that apply the str.lower() method to all entries.
This way, it doesn't drag other processes that have edit at the end of their file name into the mix.
This feature requires xedit >= 4.1.5b and can only be enabled through direct editing of the config file.
This feature is completly use at your own risk, I can not provide support for it.
@evildarkarchon
Copy link
Contributor Author

evildarkarchon commented Jul 9, 2024

Moving the monitoring code to a separate thread seems to have fixed the "Stop Cleaning" race condition. I've only done some preliminary testing, but the results are promising.

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.

1 participant