Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parsing error #87

Closed
1 task
sjhaleprogrammer opened this issue Dec 14, 2023 · 2 comments · Fixed by #95
Closed
1 task

parsing error #87

sjhaleprogrammer opened this issue Dec 14, 2023 · 2 comments · Fixed by #95
Labels
bug Something isn't working

Comments

@sjhaleprogrammer
Copy link

Type of bug

Parsing error

Version

0.1.1

Did you test against master?

  • Certainly

Error message (if not timeout)

dconf2nix: "dconf.settings" (line 263, column 34):
unexpected "{"
expecting "<("
CallStack (from HasCallStack):
  error, called at src/DConf2Nix.hs:35:16 in dconf2nix-0.1.1-Kj3okwrvVsmLXSmJ1JaeH6:DConf2Nix

DConf input

[org/gnome/shell]
app-picker-layout=[{'Utilities': <{'position': <0>}>}]

Additional context

No response

@sjhaleprogrammer sjhaleprogrammer added the bug Something isn't working label Dec 14, 2023
@montchr
Copy link

montchr commented Feb 23, 2024

I've managed to work around this by deleting that setting from the file using the crudini tool for performing CRUD operations on INI files. I am not sure whether the output format of dconf dump is valid INI, but crudini can handle it just fine.

Example:

dconf dump / > dconf.settings
crudini --del dconf.settings 'org/gnome/shell' 'app-picker-layout'
dconf2nix -i dconf.settings -o dconf.settings.nix

@drmikecrowe
Copy link

I used sed:

mike-nixos  main @ 44750a0 ⩮∽+⇡ ❄️ flakeShell-env! dconf dump / | sed '/</d' > dconf.ini

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants