2 * Configuration window for wmmaiload dockapp, Thomas Nemeth 2002.
11 #include "variables.h"
13 #include "mainwindow.h"
17 int switch_authorized
;
30 printf("Usage: "PACKAGE
"-config [-h] [-v] [-f filename]\n"
31 " -h : short usage help\n"
32 " -v : show version\n"
33 " -f filename : edit filename\n\n");
38 void app_init(int argc
, char *argv
[]) {
44 switch_authorized
= 1;
55 if (argv
[ind
][0] == '-') {
56 switch (argv
[ind
][1]) {
58 printf(PACKAGE
"-config by Thomas Nemeth - v "VERSION
"\n");
62 printf(PACKAGE
"-config by Thomas Nemeth - v "VERSION
"\n");
67 config_file
= xstrdup(argv
[ind
]);
70 printf("Unknown option: %s\n", argv
[ind
]);
75 fprintf(stderr
, "Unknown option: %s\n", argv
[ind
]);
81 char *Home
= robust_home();
82 config_file
= xmalloc(strlen(Home
) + strlen(DEFAULT_CFGFILE
) + 3);
83 sprintf(config_file
, "%s/%s", Home
, DEFAULT_CFGFILE
);
88 int main(int argc
, char *argv
[]) {
90 gtk_init(&argc
, &argv
);