If addon need a multi option configuration file, addon should provides a configuration description file first. The filename need to same with the addon name.
If addon requires a series of sub-configuration file, or some simple text file, the addon configuration file need to contains SubConfig key to list wildcard file name.
[Addon]
Name=fcitx-table
_GeneralName=Table
_Comment=Table Input Method for Fcitx
Category=InputMethod
Enabled=True
Library=fcitx-table.so
Type=SharedLibrary
Dependency=fcitx-pinyin,fcitx-punc
SubConfig=Table:configfile:table/*.conf:table.desc,fcitx:domain
fcitx-table has several table configuration files, SubConfig is defined in following format.
SubConfig=SubConfig1,Subconfig2,...,Subconfig3
Each SubConfig is defined in following format:
Name:type:description
Currently, type can be "configfile", "native", or "domain". "native" defines a simple text filename in description, which cannot have wildcard in filename. Description of "configfile" contains filename with wildcard and configuration description file name. "domain" defines gettext domain of this module. Names of "configfile" and "native" are translatable, translation should live in the "domain" defined by subconfig.