From 85ed2bd3319dbc19408371def412ac8814064c09 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Sat, 1 Sep 2012 14:36:37 +0400 Subject: [PATCH] Reimplement support of use ~ as home directory in hotlist. Signed-off-by: Andrew Borodin --- src/filemanager/hotlist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/filemanager/hotlist.c b/src/filemanager/hotlist.c index 1b78d4e1f..b9aa98caa 100644 --- a/src/filemanager/hotlist.c +++ b/src/filemanager/hotlist.c @@ -1437,7 +1437,7 @@ hot_load_group (struct hotlist *grp) label = g_strdup (tkn_buf->str); CHECK_TOKEN (TKN_URL); CHECK_TOKEN (TKN_STRING); - url = g_strdup (tkn_buf->str); + url = tilde_expand (tkn_buf->str); add2hotlist (label, url, HL_TYPE_ENTRY, LISTBOX_APPEND_AT_END); SKIP_TO_EOL; } @@ -1491,7 +1491,7 @@ hot_load_file (struct hotlist *grp) label = g_strdup (tkn_buf->str); CHECK_TOKEN (TKN_URL); CHECK_TOKEN (TKN_STRING); - url = g_strdup (tkn_buf->str); + url = tilde_expand (tkn_buf->str); add2hotlist (label, url, HL_TYPE_ENTRY, LISTBOX_APPEND_AT_END); SKIP_TO_EOL; } -- 2.11.4.GIT