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

Tray: Make starting tray check faster #799

Merged
merged 4 commits into from
Jul 24, 2024

Conversation

iLLiCiTiT
Copy link
Member

@iLLiCiTiT iLLiCiTiT commented Jul 24, 2024

Changelog Description

Check if the PID defined in tray info file is alive to make validation of starting tray faster.

Additional info

It happened to me that if tray is brute-force shutdown it does not cleanup the file, so next tray startup takes 10 seconds. Added check if the PID is still alive before any other check.

Testing notes:

Not sure how to exactly replicate the issue. I've started tray in terminal and killed the terminal tab when splash showed up. With that done, the next startup takes at about 10 seconds. With this PR it should be faster.

@ynbot ynbot added size/XS type: enhancement Improvement of existing functionality or minor addition labels Jul 24, 2024
Copy link
Member

@64qam 64qam left a comment

Choose a reason for hiding this comment

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

well... maybe... I don't know...

@iLLiCiTiT iLLiCiTiT merged commit 9a063b2 into develop Jul 24, 2024
3 checks passed
@iLLiCiTiT iLLiCiTiT deleted the enhancement/tray-faster-starting-validation branch July 24, 2024 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XS type: enhancement Improvement of existing functionality or minor addition
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants