Expand leading tilde in icon paths (fixes #743)

This commit is contained in:
Chris Lee
2019-06-02 22:08:20 +02:00
parent b9c313cd18
commit 784edaccd2
4 changed files with 8 additions and 3 deletions

View File

@@ -891,7 +891,7 @@ gboolean read_execp(void *obj)
} else {
execp->backend->text = strdup("");
}
execp->backend->icon_path = strdup(execp->backend->buf_stdout);
execp->backend->icon_path = expand_tilde(execp->backend->buf_stdout);
}
size_t len = strlen(execp->backend->text);
if (len > 0 && execp->backend->text[len - 1] == '\n')