mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
actually honor termpath and lockpath if specified in cwmrc.
"now" oga@
This commit is contained in:
parent
b86d3cfae9
commit
efbfc5fa42
10
conf.c
10
conf.c
@ -36,11 +36,11 @@ conf_cmd_add(struct conf *c, char *image, char *label, int flags)
|
||||
{
|
||||
/* "term" and "lock" have special meanings. */
|
||||
|
||||
if (strcmp(label, "term") == 0) {
|
||||
strlcpy(Conf.termpath, image, sizeof(Conf.termpath));
|
||||
} else if (strcmp(label, "lock") == 0) {
|
||||
strlcpy(Conf.lockpath, image, sizeof(Conf.lockpath));
|
||||
} else {
|
||||
if (strcmp(label, "term") == 0)
|
||||
strlcpy(c->termpath, image, sizeof(c->termpath));
|
||||
else if (strcmp(label, "lock") == 0)
|
||||
strlcpy(c->lockpath, image, sizeof(c->lockpath));
|
||||
else {
|
||||
struct cmd *cmd;
|
||||
XMALLOC(cmd, struct cmd);
|
||||
cmd->flags = flags;
|
||||
|
Loading…
Reference in New Issue
Block a user