2 * Configuration window for wmmaiload dockapp, Thomas Nemeth 2002.
11 #include "variables.h"
13 #include "mainwindow.h"
18 printf("Usage: "PACKAGE
"-config [-h] [-v] [-f filename]\n"
19 " -h : short usage help\n"
20 " -v : show version\n"
21 " -f filename : edit filename\n\n");
26 void app_init(int argc
, char *argv
[]) {
32 switch_authorized
= 1;
43 if (argv
[ind
][0] == '-') {
44 switch (argv
[ind
][1]) {
46 printf(PACKAGE
"-config by Thomas Nemeth - v "VERSION
"\n");
50 printf(PACKAGE
"-config by Thomas Nemeth - v "VERSION
"\n");
55 config_file
= xstrdup(argv
[ind
]);
58 printf("Unknown option: %s\n", argv
[ind
]);
63 fprintf(stderr
, "Unknown option: %s\n", argv
[ind
]);
69 char *Home
= robust_home();
70 config_file
= xmalloc(strlen(Home
) + strlen(DEFAULT_CFGFILE
) + 3);
71 sprintf(config_file
, "%s/%s", Home
, DEFAULT_CFGFILE
);
76 int main(int argc
, char *argv
[]) {
78 gtk_init(&argc
, &argv
);