Please allow quirkless fc-scan use in rootless mode
To create robust config files that do not accidentally depend on other files already present on the system, I’d like to run fc-scan in rootless mode, to check what fontconfig thinks of a fileset, absent any configuration.
The closest way I’ve found to achieve that is:
$ FONTCONFIG_SYSROOT=/dev/null fc-scan…
However fc-scan will then output a:
Fontconfig error: Cannot load default config file: No such file: (null)
That’s quite annoying and requires additional scripting to inhibit (and then you either inhibit all stderr, which is dangerous, or this specific line, which is not future-proof).
Please provide some way to explicitly run fc-scan in rootless mode without quirky errors