Commit 66b70d6b authored by Albert Gräf's avatar Albert Gräf
Browse files

Need to expand ~ et al when checking for the existence of search paths. Fixes #293.

parent 47fe745a
......@@ -625,8 +625,14 @@ void sys_loadpreferences( void)
sprintf(keybuf, "path%d", i+1);
if (!sys_getpreference(keybuf, prefbuf, MAXPDSTRING))
break;
else if (!check_exists(prefbuf)) // AG: ignore non-existent paths
continue;
else {
// AG: need to expand ~ et al here
char final_name[FILENAME_MAX];
sys_expandpathelems(prefbuf, final_name);
// AG: ignore non-existent paths
if (!check_exists(final_name))
continue;
}
sys_searchpath = namelist_append_files(sys_searchpath, prefbuf);
}
if (sys_getpreference("standardpath", prefbuf, MAXPDSTRING))
......
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