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

Added: Suppress that Annoying DBus Error on Some Wayland Compositors [for now] #2640

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Sewer56
Copy link
Member

@Sewer56 Sewer56 commented Feb 13, 2025

Just something I added on my own local machine last night, might aswell chuck it in here.
This suppresses the annoying DBus error that some Wayland compositors get while displaying tooltips in the UI.

Since we're releasing to a wider audience we can't really have constant error dialogs be thrown at end users; it's rough enough when testing, and probably much worse in actual use.

We need to report this upstream, if it's not reported already.
I left a note with the suppression in the source code.

@Sewer56 Sewer56 requested a review from erri120 February 13, 2025 14:12
@Sewer56 Sewer56 self-assigned this Feb 13, 2025
Comment on lines +160 to +162
if (msg.Exception is AggregateException aggregateException
&& aggregateException.InnerException is DBusException)
return false;
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we should be excluding all D-Bus exceptions. D-Bus is used for selecting and opening files and links, among other things.

Copy link
Member Author

@Sewer56 Sewer56 Feb 17, 2025

Choose a reason for hiding this comment

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

Do you have a better suggestion? The situation kinda sucks and I'm open to anything.

We can't necessarily filter out by using the exception message; that may be localized; or contain localized parts.

The HRESULT is 0x80131500, which, as far as I can tell would likely be shared by other DBus Services.

The Stack Trace does not have any Avalonia code etc. we don't even know the caller of the issue. Nothing we could reference there either.

We have no hope of getting Avalonia to merge our changes, even if we were to fix it ourselves within the next 4-8 working days.


The situation... kinda sucks, a lot.
I don't think we can ship with users getting exception modals on every tooltip either though.

@halgari halgari requested a review from erri120 February 18, 2025 13:50
@github-actions github-actions bot added the status-needs-rebase Set by CI do not remove label Feb 20, 2025
Copy link
Contributor

This PR conflicts with main. You need to rebase the PR before it can be merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status-needs-rebase Set by CI do not remove
Projects
Status: Review
Development

Successfully merging this pull request may close these issues.

3 participants