Commit 42372360 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Really return an absolute path

Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
parent ce5ad806
......@@ -55,8 +55,12 @@ girara_fix_path(const char* path)
rpath = g_build_filename(home_path, path + idx, NULL);
g_free(home_path);
} else {
} else if (g_path_is_absolute(path) == TRUE) {
rpath = g_strdup(path);
} else {
char* curdir = g_get_current_dir();
rpath = g_build_filename(curdir, path, NULL);
g_free(curdir);
}
return rpath;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment