Lines Matching refs:editor
5988 char *editor, **editor_args = NULL;
6002 editor = getenv("SYSTEMD_EDITOR");
6003 if (!editor)
6004 editor = getenv("EDITOR");
6005 if (!editor)
6006 editor = getenv("VISUAL");
6008 if (!isempty(editor)) {
6009 editor_args = strv_split(editor, WHITESPACE);
6034 FOREACH_STRING(p, "editor", "nano", "vim", "vi") {
6037 /* We do not fail if the editor doesn't exist
6042 log_error_errno(errno, "Failed to execute %s: %m", editor);
6047 log_error("Cannot edit unit(s), no editor available. Please set either $SYSTEMD_EDITOR, $EDITOR or $VISUAL.");
6051 r = wait_for_terminate_and_warn("editor", pid, true);