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

icon-receiver: Retry X connection on error #53

Merged
merged 1 commit into from
Sep 18, 2020

Conversation

rmol
Copy link
Contributor

@rmol rmol commented Aug 27, 2020

This adds an exception handler to the event loop, which will try to reestablish the xcb connection on error. The connection logic is pulled out of IconReceiver.__init__ to a new connect method, to support this.

This does mitigate QubesOS/qubes-issues#5979, but I hesitate to call it a complete fix. What happens for me is that icon-receiver still fails to connect for 6-7 seconds, during which time it's still spamming .xsession-errors.old, but it is eventually able to connect and the torrent of error logging stops.

@marmarek
Copy link
Member

An alternative would be to simply exit on X connection error. There is a /etc/xdg/autostart/qubes-icon-receiver.desktop entry that should restart it when the X server (and user session) is back.

Add an exception handler to the event loop, which will exit if there
is a connection error.
@rmol rmol force-pushed the 5979-icon-receiver-reconnect branch from 64bcd7f to 58772f4 Compare September 1, 2020 16:30
@rmol
Copy link
Contributor Author

rmol commented Sep 1, 2020

That does seem to work better.

@marmarek marmarek merged commit f1ac1b9 into QubesOS:master Sep 18, 2020
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.

2 participants