Accept write-pid-path option from the config file

Signed-off-by: jialeens <jialeadmin@163.com>
This commit is contained in:
jialeens
2020-09-16 15:35:35 +08:00
committed by Yuxuan Shui
parent 4bc1ef87c9
commit 7d7eef7ff4
3 changed files with 14 additions and 1 deletions

View File

@@ -795,7 +795,11 @@ bool get_cfg(options_t *opt, int argc, char *const *argv, bool shadow_enable,
P_CASELONG(309, unredir_if_possible_delay);
case 310:
// --write-pid-path
free(opt->write_pid_path);
opt->write_pid_path = strdup(optarg);
if (*opt->write_pid_path != '/') {
log_warn("--write-pid-path is not an absolute path");
}
break;
P_CASEBOOL(311, vsync_use_glfinish);
case 312: