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

Watch for xdg-desktop-portal starting before binding style scheme #34

Merged
merged 1 commit into from
Oct 27, 2021

Conversation

davidmhewitt
Copy link
Member

@davidmhewitt davidmhewitt commented Oct 27, 2021

Fixes #33

In theory, this is a case where Granite could (and does eventually) fall back to using AccountsService to get the style preference. But because the unsandboxed portals process can see there's a Settings Portal that it could DBus activate, it tries and blocks everything until it times out.

So instead of trying to initialise the Granite.Settings class right away, lets wait until the Settings Portal is there, so Granite can connect to it instead of trying to DBus activate it while it's already trying to start.

@danirabbit danirabbit merged commit 834df47 into main Oct 27, 2021
@danirabbit danirabbit deleted the fix-hang-on-start branch October 27, 2021 20:23
davidmhewitt added a commit that referenced this pull request Oct 27, 2021
danirabbit pushed a commit that referenced this pull request Oct 27, 2021
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.

AppChooser portal causing significant login delay
2 participants