In #6, we set NO_PREFERENCE as an alias for light mode. This may not be desired, if you want no preference to have a semantic meaning as the default (for xdg-desktop-portals where no-preference is semantically meaningful, like with darkman).
For backwards compatibility, we should allow a default key, which defaults to light, and use it to determine the mode when NO_PREFERENCE is returned from the desktop portal.
In #6, we set
NO_PREFERENCEas an alias for light mode. This may not be desired, if you want no preference to have a semantic meaning as the default (for xdg-desktop-portals where no-preference is semantically meaningful, like with darkman).For backwards compatibility, we should allow a
defaultkey, which defaults tolight, and use it to determine the mode whenNO_PREFERENCEis returned from the desktop portal.