fix path resolution for desktop device which was broken while fixing path resolution for desktop device which was broken while fixing path resolution for desktop device

SVN revision: 74734
This commit is contained in:
Mike Blumenkrantz 2012-08-01 12:28:14 +00:00
parent a98ba49fbc
commit 06b18f44c8
1 changed files with 4 additions and 3 deletions

View File

@ -3089,9 +3089,10 @@ _e_fm2_dev_path_map(const char *dev, const char *path)
.desktop files or symlinks (in fact anything .desktop files or symlinks (in fact anything
* you like * you like
*/ */
if ((!path) || (!path[0]) || (path[0] == '/')) if ((!path) || (!path[0]) || (!strcmp(path, "/")))
snprintf(buf, sizeof(buf), "%s", snprintf(buf, sizeof(buf), "%s", efreet_desktop_dir_get());
efreet_desktop_dir_get()); else if (path[0] == '/')
snprintf(buf, sizeof(buf), "%s/%s", efreet_desktop_dir_get(), path);
else else
snprintf(buf, sizeof(buf), "%s-%s", snprintf(buf, sizeof(buf), "%s-%s",
efreet_desktop_dir_get(), path); efreet_desktop_dir_get(), path);