DesktopReadOptions.unknownGroupPolicy

Set policy about unknown groups. By default they are skipped without errors. Note that all groups still need to be preserved if desktop file must be rewritten.

struct DesktopReadOptions
UnknownGroupPolicy unknownGroupPolicy;

Meta