Trim "s from process names, from Gregory Pakosz.

This commit is contained in:
Nicholas Marriott 2020-09-30 13:26:31 +01:00
parent 4f638c0e31
commit 5f50e7d942

View File

@ -142,6 +142,10 @@ parse_window_name(const char *in)
char *copy, *name, *ptr;
name = copy = xstrdup(in);
if (*name == '"')
name++;
name[strcspn (name, "\"")] = '\0';
if (strncmp(name, "exec ", (sizeof "exec ") - 1) == 0)
name = name + (sizeof "exec ") - 1;