fastfetch: ffSettingsGetDConf not working

This code:

        ffStrbufSetS(&key, "/com/gexperts/Tilix/profiles/");
        ffStrbufAppendS(&key, defaultProfile);
        ffStrbufAppendS(&key, "/font");
        puts(key.chars);
        puts("/com/gexperts/Tilix/profiles/2b7c4080-0ddd-46c5-8f23-563fd3ba789d/font");

        fontName = ffSettingsGetDConf(instance, key.chars);
        printf("fontName: %s\n", fontName);

Produces this:

/com/gexperts/Tilix/profiles/2b7c4080-0ddd-46c5-8f23-563fd3ba789d/font
/com/gexperts/Tilix/profiles/2b7c4080-0ddd-46c5-8f23-563fd3ba789d/font
fontName: (null)

My generated string is identical to the one copied from dconf editor. The function returns NULL.

DConf command line:

╰─ dconf read /com/gexperts/Tilix/profiles/2b7c4080-0ddd-46c5-8f23-563fd3ba789d/font
'Monospace 11'

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 30 (15 by maintainers)

Most upvoted comments

you now have a boolValueSet.

I think i have an idea. Just hang on a bit

So we need bool support for dconf? Will work on this as soon as i finished what im currently working on

pushed.