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

Sort implementations based on the UseIn key #670

Merged
merged 1 commit into from
Dec 3, 2021

Conversation

Marukesu
Copy link
Contributor

@Marukesu Marukesu commented Dec 1, 2021

this fixes an possible issue in org.freedesktop.portal.Settings that they would call an fallback backend first instead of the supported one, possibly breaking the org.freedesktop.appearance.color-scheme support, if both implements it.

Copy link
Member

@GeorgesStavracas GeorgesStavracas left a comment

Choose a reason for hiding this comment

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

Some comments, thanks for working on it

src/portal-impl.c Outdated Show resolved Hide resolved
src/portal-impl.c Outdated Show resolved Hide resolved
src/portal-impl.c Outdated Show resolved Hide resolved
src/portal-impl.c Outdated Show resolved Hide resolved
Copy link
Member

@GeorgesStavracas GeorgesStavracas left a comment

Choose a reason for hiding this comment

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

Please squash the commits together, and either apply or reject my nitpicky suggestion below. LGTM when you do that.

src/portal-impl.c Outdated Show resolved Hide resolved
@GeorgesStavracas
Copy link
Member

The title of the first commit should be something like impl: Sort by UseIn and name

Please add a description of your changes, what are they fixing, and how it is done, in the commit message. Please keep in mind that commit message lines are limited to 72 characters in length.

@Marukesu Marukesu force-pushed the sort-impl-use-in branch 3 times, most recently from 247b67f to 8f5354e Compare December 3, 2021 14:40
@Marukesu
Copy link
Contributor Author

Marukesu commented Dec 3, 2021

it should be all good now.

src/portal-impl.c Outdated Show resolved Hide resolved
makes the implementations list sort supported backends first.
this fixes an possible issue in org.freedesktop.portal.Settings
that they would call an fallback backend first instead of the
supported one.
@GeorgesStavracas GeorgesStavracas merged commit 580a62f into flatpak:master Dec 3, 2021
@GeorgesStavracas
Copy link
Member

Thanks, this looks good to me now

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