Add command line option -C to specify config directory

Also expand usage message to explain what each option means
This commit is contained in:
Johan Malm 2022-04-22 17:00:36 +01:00
parent d0b9680d00
commit edc5338af4
8 changed files with 47 additions and 27 deletions

View file

@ -14,7 +14,6 @@
#include <wayland-server-core.h>
#include <wlr/util/log.h>
#include "action.h"
#include "common/dir.h"
#include "common/nodename.h"
#include "common/string-helpers.h"
#include "common/zfree.h"
@ -626,10 +625,10 @@ post_processing(void)
static void
rcxml_path(char *buf, size_t len)
{
if (!strlen(config_dir())) {
if (!rc.config_dir) {
return;
}
snprintf(buf, len, "%s/rc.xml", config_dir());
snprintf(buf, len, "%s/rc.xml", rc.config_dir);
}
static void