char EDITOR_CMD[1024];
int FORCE_REFRESH = 0;
int THREAD_SORT_TYPE = NT_THREAD_SORT_BY_READ;
+int INIT_DISP_STATE = NT_INTI_DISP_BOARDMENU;
+
static char *app_name = PACKAGE_NAME;
static char *version_name = PACKAGE_VERSION;
static char *def_editor_cmd = "vi";
{
FILE *fp;
char *cptr, *key, *val;
- char *sort_type;
+ char *sort_type, *init_disp;
char buf[128];
fp = fopen(path, "r");
free(sort_type);
continue;
}
+ key = strstr(buf, "show");
+ if(key){
+ val = cptr+1;
+ init_disp = nt_trim(val);
+ if(!init_disp)
+ break;
+ if(0 == strcmp(init_disp, "favorite")){
+ INIT_DISP_STATE = NT_INTI_DISP_FAVORITE;
+ }
+ free(init_disp);
+ continue;
+ }
}
fclose(fp);
return TRUE;