- Timestamp:
- Jun 4, 2003, 12:04:54 AM (21 years ago)
- Branches:
- master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 96f8e5b
- Parents:
- fd93b41
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
owl.c
r3abf28b r38cf544c 22 22 #include <sys/param.h> 23 23 #include <sys/types.h> 24 #include <sys/stat.h> 24 25 #include "owl.h" 25 26 … … 37 38 time_t nexttime, now; 38 39 struct tm *today; 40 char *dir; 39 41 40 42 argcsave=argc; … … 123 125 init_pair(OWL_COLOR_WHITE, COLOR_WHITE, -1); 124 126 } 127 125 128 126 129 /* owl init */ … … 128 131 if (debug) owl_global_set_debug_on(&g); 129 132 owl_global_set_startupargs(&g, argcsave, argvsave); 130 owl_context_set_readconfig(owl_global_get_context(&g)); 133 134 /* create the owl directory, in case it does not exist */ 135 dir=owl_sprintf("%s/%s", owl_global_get_homedir(&g), OWL_CONFIG_DIR); 136 mkdir(dir, S_IRWXU); 137 owl_free(dir); 131 138 132 139 /* set the tty, either from the command line, or by figuring it out */ … … 138 145 139 146 /* setup the default filters */ 140 141 147 /* the personal filter will need to change again when AIM chat's are 142 148 * included. Also, there should be an %aimme% */ … … 191 197 owl_view_create(owl_global_get_current_view(&g), f); 192 198 199 /* process the startup file */ 200 owl_function_execstartup(); 201 202 193 203 /* read the config file */ 204 owl_context_set_readconfig(owl_global_get_context(&g)); 194 205 ret=owl_readconfig(configfile); 195 206 if (ret) {
Note: See TracChangeset
for help on using the changeset viewer.