const char *time_format;
const char *battery_path;
bool use_colors;
+bool get_ethspeed;
const char *wmii_normcolors = "#222222 #333333";
char order[MAX_ORDER][2];
const char **run_watches;
OPT("wmii_path")
{
char *globbed = glob_path(dest_value);
- if ((stat(globbed, &stbuf)) == -1)
- die("wmii_path contains an invalid path");
+ if ((stat(globbed, &stbuf)) == -1) {
+ fprintf(stderr, "Warning: wmii_path contains an invalid path\n");
+ free(globbed);
+ globbed = strdup(dest_value);
+ }
if (globbed[strlen(globbed)-1] != '/')
die("wmii_path is not terminated by /");
wmii_path = globbed;
{
use_colors = true;
}
+ OPT("get_ethspeed")
+ {
+ get_ethspeed = true;
+ }
OPT("normcolors")
{
wmii_normcolors = strdup(dest_value);
fclose(handle);
if (wmii_path == NULL)
- exit(-4);
+ exit(EXIT_FAILURE);
return result;
}