Closed rycee closed 3 years ago
Btw, you can see the functions in action in the gvariant test case.
Thanks a lot @rycee ! Didn't know about those mk
functions, will get it done soon :)
Thanks to both of you for taking care of this! It works perfectly now.
I noticed in https://github.com/nix-community/home-manager/issues/2249 that dconf2nix generates output in a "raw" dconf format, for example, the uint32 value 0 is emitted as a Nix string
"uint32 0"
. This is not really the intended way to construct GVariant values in the HM library. The recommended way to emit values is to use the variousmk
functions as described in the manual (scroll down to wherehm.types.gvariant
starts).For example, instead of having
"uint32 0"
one would uselib.hm.gvariant.mkUint32 0
. Using the functions should be considerably more robust.Btw, very neat project! Good job 🙂