was adding an extra / in ob_expand_tilde
This commit is contained in:
parent
3d1e2ab1b4
commit
88f83fc927
1 changed files with 2 additions and 4 deletions
|
@ -419,14 +419,12 @@ ObState ob_state()
|
||||||
gchar *ob_expand_tilde(const gchar *f)
|
gchar *ob_expand_tilde(const gchar *f)
|
||||||
{
|
{
|
||||||
gchar **spl;
|
gchar **spl;
|
||||||
gchar *ret, *mid;
|
gchar *ret;
|
||||||
|
|
||||||
if (!f)
|
if (!f)
|
||||||
return NULL;
|
return NULL;
|
||||||
spl = g_strsplit(f, "~", 0);
|
spl = g_strsplit(f, "~", 0);
|
||||||
mid = g_strconcat(g_get_home_dir(), G_DIR_SEPARATOR_S, NULL);
|
ret = g_strjoinv(g_get_home_dir(), spl);
|
||||||
ret = g_strjoinv(mid, spl);
|
|
||||||
g_free(mid);
|
|
||||||
g_strfreev(spl);
|
g_strfreev(spl);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue