From 2d9baf78c5458708417172e89b674ce9606a5ae2 Mon Sep 17 00:00:00 2001 From: Raphael Khaiat Date: Tue, 16 Nov 2010 01:09:35 +0100 Subject: [PATCH] Starting wmfs with an alternate wmfs was possible with wmfs -C otherWmfsrc but only $HOME/.config/wmfsrc was read when reloading wmfs. Now, if you start wmfs with -C and a different file, this file will be reloaded. --- src/wmfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wmfs.c b/src/wmfs.c index b614b21..cdbb923 100644 --- a/src/wmfs.c +++ b/src/wmfs.c @@ -282,7 +282,8 @@ uicb_reload(uicb_t cmd) for(; argv_global[0] && argv_global[0] == ' '; ++argv_global); - execlp(argv_global, argv_global, NULL); + // add -C to always load the same config file + execlp(argv_global, argv_global, "-C", conf.confpath, NULL); return; }