forked from enlightenment/enlightenment
only create desktop paths when actually desktop directories
SVN revision: 74735
This commit is contained in:
parent
06b18f44c8
commit
b8cdf23f62
|
@ -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");
|
||||||
|
|
Loading…
Reference in New Issue