An easier solution may be to assume a default empty category without any question (as if the file /usr/share/games/freevial/databases/empty.xml exists).
When there are no enough categories, fill the catalog with that empty template repeated.
For example: if in the /usr/share/games/freevial/databases directory there are only 4 category files, then load that 4 and add 2 empty ones. The empty categories can be an integrated template, or a file too.
Solving this matter can help to begin at category creation (make one and test one), when doesn't interest anyone from the default installation.
An easier solution may be to assume a default empty category without any question (as if the file /usr/share/ games/freevial/ databases/ empty.xml exists).
When there are no enough categories, fill the catalog with that empty template repeated.
For example: if in the /usr/share/ games/freevial/ databases directory there are only 4 category files, then load that 4 and add 2 empty ones. The empty categories can be an integrated template, or a file too.
Solving this matter can help to begin at category creation (make one and test one), when doesn't interest anyone from the default installation.
Thanks.