of ~user as well as ~dir.
if (text[0] == '~')
{
gchar *t = text;
- text = g_strconcat(homedir(), t + 1, NULL);
+ text = expand_tilde(text);
g_free(t);
}
if (text[0] == '~')
{
gchar *t = text;
- text = g_strconcat(homedir(), t + 1, NULL);
+ text = expand_tilde(text);
g_free(t);
}
/* home dir expansion */
if (entry_text[0] == '~')
{
- entry_dir = g_strconcat(homedir(), entry_text + 1, NULL);
+ entry_dir = expand_tilde(entry_text);
home_exp = TRUE;
}
else