only create desktop paths when actually desktop directories

SVN revision: 74735
This commit is contained in:
Mike Blumenkrantz 2012-08-01 12:29:18 +00:00
parent 06b18f44c8
commit b8cdf23f62
1 changed files with 8 additions and 4 deletions

View File

@ -3090,13 +3090,17 @@ _e_fm2_dev_path_map(const char *dev, const char *path)
* you like * you like
*/ */
if ((!path) || (!path[0]) || (!strcmp(path, "/"))) if ((!path) || (!path[0]) || (!strcmp(path, "/")))
snprintf(buf, sizeof(buf), "%s", efreet_desktop_dir_get()); {
snprintf(buf, sizeof(buf), "%s", efreet_desktop_dir_get());
ecore_file_mkpath(buf);
}
else if (path[0] == '/') else if (path[0] == '/')
snprintf(buf, sizeof(buf), "%s/%s", efreet_desktop_dir_get(), path); snprintf(buf, sizeof(buf), "%s/%s", efreet_desktop_dir_get(), path);
else else
snprintf(buf, sizeof(buf), "%s-%s", {
efreet_desktop_dir_get(), path); snprintf(buf, sizeof(buf), "%s-%s", efreet_desktop_dir_get(), path);
ecore_file_mkpath(buf); ecore_file_mkpath(buf);
}
} }
else if (strcmp(dev, "temp") == 0) else if (strcmp(dev, "temp") == 0)
PRT("/tmp"); PRT("/tmp");