forked from enlightenment/enlightenment
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:
parent
a98ba49fbc
commit
06b18f44c8
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue