Reload wmfs with exact same argument as it has been launched instead of
just reloading the good wmfsrc (idea from ksh.)
This commit is contained in:
parent
31899139e4
commit
8d71b8c2a8
@ -282,8 +282,7 @@ uicb_reload(uicb_t cmd)
|
||||
|
||||
for(; argv_global[0] && argv_global[0] == ' '; ++argv_global);
|
||||
|
||||
// add -C to always load the same config file
|
||||
execlp(argv_global, argv_global, "-C", conf.confpath, NULL);
|
||||
execvp(argv_global, all_argv);
|
||||
|
||||
return;
|
||||
}
|
||||
@ -418,6 +417,8 @@ main(int argc, char **argv)
|
||||
char *ol = "csgVS";
|
||||
|
||||
argv_global = _strdup(argv[0]);
|
||||
all_argv = argv;
|
||||
|
||||
sprintf(conf.confpath, "%s/"DEF_CONF, getenv("HOME"));
|
||||
|
||||
while((i = getopt(argc, argv, "hviSc:s:g:C:V:")) != -1)
|
||||
|
||||
@ -440,6 +440,7 @@ XRectangle *sgeo;
|
||||
XRectangle *spgeo;
|
||||
Cursor cursor[CurLast];
|
||||
char *argv_global;
|
||||
char **all_argv;
|
||||
int xrandr_event;
|
||||
uint timing;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user