please don't break Desktop-1/2 ec. for multi-screen. thanks. :)

SVN revision: 74634
This commit is contained in:
Carsten Haitzler 2012-07-31 09:50:27 +00:00
parent 3b2587d064
commit c98fe5be14
1 changed files with 6 additions and 8 deletions

View File

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