-
Notifications
You must be signed in to change notification settings - Fork 158
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
xwayland: allow persistence #1961
Conversation
No, I think that limitation is fine. I don't expect users wanting to keep changing this during runtime. We should add that limitation to the man page though ( |
Updated the docs, and added support for running an xinitrc script whenever Xwayland is started. |
LGTM, not tested. Personally, I am fine with having this bypass the release cooldown. Thoughts @johanmalm ? |
I did some more investigation with the
The problem is that we aren't notified that Xwayland is ready until it is already responding to clients, so the local application that triggers its launch has already queried the resource database before we've had a chance to (asynchronously) populate it. The X11 proxy built into SSH seems to delay things long enough that the local This is a race we seem destined to lose for local clients, and I don't believe there is anything that we can do about it. I don't even know if wlroots can do anything about it. I also don't know if my observation of "correct" behavior on remote, SSH-tunneled clients is a necessary consequence of the implementation, or just a race we are less likely to lose. While there might be some value in supporting xinitrc (and, by reusing the session machinery, it doesn't really cost us anything to do so), I think the only reliable way to solve the configuration issue in #1958 is to configure Xwayland for persistence. |
So if making Xwayland persistent is the only way to reliably solve the
issue, are we sure that the benefits of xinitrc are greater than the
confusion it might cause.
The other core configuration options are nouns so suggest making it
xwaylandPersistence (rather than persists). Happy to merge that commit it
cool down.
I'm not convinced by the net benefit of the xinitrc, but may be missing
some context.
Sorry, have to IRC or browser access for a few days.
…On Wed, 3 Jul 2024, 20:32 Consolatis, ***@***.***> wrote:
LGTM, not tested.
Personally, I am fine with having this bypass the release cooldown.
Thoughts @johanmalm <https://github.com/johanmalm> ?
—
Reply to this email directly, view it on GitHub
<#1961 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABVCCWLFBGH4TPXF2HTWUKDZKQ7VVAVCNFSM6AAAAABKKBM35OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBWHE2TQMRQGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I'm sure we can solve the race (which might require changes to wlroots), but I agree that it'd be better to commit just the persistence change now, and delay committing the xinitrc support until we've solved the race. |
Closes: labwc#1958.
I moved "persists" to "persistence" in the first commit, and decided to move the |
Thanks! |
I've just moved to 0.7.3, and this solves my issue quite nicely. Thanks. |
This seems to work as expected, keeping the server alive indefinitely at launch rather than allowing it to die.
Closes: #1958.