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

@@ -794,7 +794,7 @@ void add_entry(char *key, char *value)
} else if (strcmp(key, "button_icon") == 0) {
if (strlen(value)) {
Button *button = get_or_create_last_button();
button->backend->icon_name = strdup(value);
button->backend->icon_name = expand_tilde(value);
}
} else if (strcmp(key, "button_text") == 0) {
if (strlen(value)) {