nix-community / dconf2nix

:feet: Convert dconf files (e.g. GNOME Shell) to Nix, as expected by Home Manager [maintainer=@jtojnar]
Apache License 2.0
228 stars 6 forks source link

Unable to parse /org/gnome/{clocks/, desktop/input-sources/} and /desktop/ibus/panel/emoji/favorites #28

Closed Shou closed 3 years ago

Shou commented 3 years ago
✦ ➜ for k in clocks/ desktop/input-sources/;                                                                                                          23:48:24
        echo $k; dconf dump /org/gnome/$k | dconf2nix --timeout 5 --verbose 1>/dev/null
    end
clocks/
dconf: "[/]\nworld-clocks=[{'location': <(uint32 2, <('Houston', 'KHOU', false, [(0.51727195705981943, -1.6629933445314968)], [(0.51727195705981943, -1.6629933445314968)])>)>}, {'location': <(uint32 2, <('Singapore', 'WSAP', true, [(0.023852838928353343, 1.8136879868485383)], [(0.022568084612667797, 1.8126262332513803)])>)>}]\n\n[state/window]\npanel-id='world'\nsize=(870, 690)\nstate=87168\n"
dconf2nix: 💥 The process timed out.

  💡 You can try increasing the timeout using --timeout.

  ⛔ If the issue persists, run it again using --verbose and report the issue on Github. Sorry 😞.

CallStack (from HasCallStack):
  error, called at app/Main.hs:30:14 in main:Main
desktop/input-sources/
dconf: "[/]\nmru-sources=[('xkb', 'us+altgr-intl'), ('ibus', 'mozc-jp')]\nsources=[('xkb', 'us+altgr-intl'), ('ibus', 'mozc-jp')]\nxkb-options=['terminate:ctrl_alt_bksp']\n"
dconf2nix: 💥 The process timed out.

  💡 You can try increasing the timeout using --timeout.

  ⛔ If the issue persists, run it again using --verbose and report the issue on Github. Sorry 😞.

CallStack (from HasCallStack):
  error, called at app/Main.hs:30:14 in main:Main

✦ ➜ dconf dump /desktop/ibus/panel/emoji/ | dconf2nix --timeout 5 --verbose 1>/dev/null                                                               23:57:37
dconf: "[/]\nfavorites=['\8211', '\8594', '\8593', '\8595', '\8482', '\\u00ad', '\176', '\\v', '\160', '\171', '\8451']\n"

(Using Fish shell if any of the syntax is unfamiliar. Also, piping stdout to /dev/null to avoid even more noisy output, was mostly for debugging)

Let me know if you need any more information – hope this helps!

gvolpe commented 3 years ago

Hi @Shou ,

Thanks for the bug report. Could you share the raw inputs you get from the dconf dump? That would make it easier to add a test for the use case.

gvolpe commented 3 years ago

Okay, nevermind. I'm creating the source files from the output strings, will fix soon.