Index: trunk/src/brave.c =================================================================== --- trunk/src/brave.c (revision 12709) +++ trunk/src/brave.c (revision 12710) @@ -28,6 +28,7 @@ #include #include "brave.h" +#include "conf_core.h" #include "compat_misc.h" #include "error.h" #include "hid_dad.h" @@ -72,7 +73,7 @@ /* truncate last comma */ gds_truncate(&tmp, gds_len(&tmp)-1); -#warning TODO: set the conf + conf_set(CFR_USER, "rc/brave", 0, tmp.array, POL_OVERWRITE); gds_uninit(&tmp); } Index: trunk/src/conf_core.h =================================================================== --- trunk/src/conf_core.h (revision 12709) +++ trunk/src/conf_core.h (revision 12710) @@ -89,6 +89,7 @@ CFT_INTEGER verbose; CFT_INTEGER quiet; /* print only errors on stderr */ CFT_INTEGER backup_interval; /* time between two backups in seconds; 0 means disabled (no backups) */ + CFT_STRING brave; /* brave mode flags: when non-empty, enable various experimental (unstable) features - useful for testers */ CFT_STRING font_command; /* file name template; if not empty, run this command and read its output for loading the font; %f is the file name */ CFT_STRING file_command; /* file name template; if not empty, run this command and read its output for loading a pcb file; %f is the file name, %p is the conf setting rc.file_path */ CFT_STRING file_path; Index: trunk/src/pcb-conf.lht =================================================================== --- trunk/src/pcb-conf.lht (revision 12709) +++ trunk/src/pcb-conf.lht (revision 12710) @@ -88,6 +88,7 @@ verbose = 0 quiet = 0 backup_interval = 60 + brave = {} # font_command = {} # file_command = {} # file_path = {}