Commit 6c6010a3 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

remove realpath call and associated code for showing recent files (we get...

remove realpath call and associated code for showing recent files (we get recent files in the native file dialog for free)
parent 47bc4d19
......@@ -171,16 +171,6 @@ static void openit(const char *dirname, const char *filename)
close (fd);
glob_evalfile(0, gensym(nameptr), gensym(dirbuf));
sys_vgui("pdtk_set_current_dir {%s}\n", filename);
char actualpath[PATH_MAX];
char *path_ptr = NULL;
path_ptr = realpath(filename, actualpath);
//sys_vgui("::pd_menus::update_recentfiles_menu .mbar.file 0\n");
//fprintf(stderr, "%s %s %s %s %s\n", dirname, filename,
// strstr(filename, dirname), actualpath, path_ptr);
if (path_ptr != NULL)
{
sys_vgui("::pd_guiprefs::update_recentfiles \"%s\" 1\n", actualpath);
}
}
else
error("%s: can't open", filename);
......
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