Skip to content

Conversation

@skystrife
Copy link

Currently the calls to g_variant_get() just assume that the format string works, but don't check that this is in fact the case.

On my system, the results are all string types (since there's an error), but the code was continuing as if nothing happened. With this change, it correctly falls back to using the xbacklight backend.

(This also has inconsequential whitespace changes; I can re-make the PR without those if you want. They are a separate commit.)

This avoids trying to read things as "(u)" when they're "(s)" for example.
@esoleyman
Copy link
Contributor

I like the changes. I have been waiting on poliva to release a new version for the past 6 months. I hope he will be able to see the PR and merge.

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