1
1

Ticket #2747: fixups of hotlist loading.

Path transformation while loading hotlist breaks shell variable
substitution.
Load paths from hotlist as is withowt any transformation.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Этот коммит содержится в:
Andrew Borodin 2012-03-12 11:17:09 +03:00
родитель a742521198
Коммит cfc13ba3a0

Просмотреть файл

@ -1433,14 +1433,11 @@ hot_load_group (struct hotlist *grp)
break;
case TKN_ENTRY:
{
vfs_path_t *vpath;
CHECK_TOKEN (TKN_STRING);
label = g_strdup (tkn_buf->str);
CHECK_TOKEN (TKN_URL);
CHECK_TOKEN (TKN_STRING);
vpath = vfs_path_from_str_flags (tkn_buf->str, VPF_USE_DEPRECATED_PARSER);
url = vfs_path_to_str (vpath);
vfs_path_free (vpath);
url = g_strdup (tkn_buf->str);
add2hotlist (label, url, HL_TYPE_ENTRY, LISTBOX_APPEND_AT_END);
SKIP_TO_EOL;
}
@ -1490,14 +1487,11 @@ hot_load_file (struct hotlist *grp)
break;
case TKN_ENTRY:
{
vfs_path_t *vpath;
CHECK_TOKEN (TKN_STRING);
label = g_strdup (tkn_buf->str);
CHECK_TOKEN (TKN_URL);
CHECK_TOKEN (TKN_STRING);
vpath = vfs_path_from_str_flags (tkn_buf->str, VPF_USE_DEPRECATED_PARSER);
url = vfs_path_to_str (vpath);
vfs_path_free (vpath);
url = g_strdup (tkn_buf->str);
add2hotlist (label, url, HL_TYPE_ENTRY, LISTBOX_APPEND_AT_END);
SKIP_TO_EOL;
}