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

wait for daemon initialization before certain requests #225

Merged
merged 3 commits into from
Feb 25, 2024

Conversation

musjj
Copy link
Contributor

@musjj musjj commented Feb 24, 2024

swww {init,img,restore,clear} now waits for the daemon to initialize before making the request.

Not sure if this is the best approach, but it seems to work ok.

Fix: #224

swww {init,img,restore,clear} now waits for the daemon to initialize
before making the request

Fix: LGFae#224
@LGFae
Copy link
Owner

LGFae commented Feb 25, 2024

I wonder if this also fixes #144. It seems like it would.

Copy link
Owner

@LGFae LGFae left a comment

Choose a reason for hiding this comment

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

I like this idea a lot. The only thing besides what I've commented below is that maybe you could rename Request::Init to Request::Ping (this will also trigger a rename in its ArchivedRequest equivalent)? This would be more accurate to what we are doing now.

If it's too much work I can do it after merging too.

src/main.rs Outdated Show resolved Hide resolved
@LGFae LGFae merged commit 47cf607 into LGFae:main Feb 25, 2024
8 of 9 checks passed
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.

swww init --daemon + exec-once=swww img /tmp/image.jpg causes error
2 participants