passing a path along with "desktop" device to efm should allow you to navigate relative to your desktop directory. now it does

SVN revision: 74591
This commit is contained in:
Mike Blumenkrantz 2012-07-30 14:25:36 +00:00
parent ddde1f3dc9
commit 52a5c2c729
1 changed files with 8 additions and 2 deletions

View File

@ -3117,14 +3117,20 @@ _e_fm2_dev_path_map(const char *dev, const char *path)
}
else if (strcmp(dev, "desktop") == 0)
{
size_t size;
/* this is a virtual device - it's where your favorites list is
* stored - a dir with
.desktop files or symlinks (in fact anything
* you like
*/
if (eina_strlcpy(buf, efreet_desktop_dir_get(), sizeof(buf)) >= sizeof(buf))
return NULL;
size = eina_strlcpy(buf, efreet_desktop_dir_get(), sizeof(buf));
if (size >= sizeof(buf)) return NULL;
ecore_file_mkpath(buf);
if (path)
{
if (eina_strlcat(buf + size, path, sizeof(buf) - size) >= sizeof(buf) - size)
return NULL;
}
}
else if (strcmp(dev, "temp") == 0)
PRT("/tmp");