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.)
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.)