From 06b18f44c8976333a3927355c57662bda322b6a1 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 1 Aug 2012 12:28:14 +0000 Subject: [PATCH] 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 --- src/bin/e_fm.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/bin/e_fm.c b/src/bin/e_fm.c index 0f80bf75b..479090926 100644 --- a/src/bin/e_fm.c +++ b/src/bin/e_fm.c @@ -3089,9 +3089,10 @@ _e_fm2_dev_path_map(const char *dev, const char *path) .desktop files or symlinks (in fact anything * you like */ - if ((!path) || (!path[0]) || (path[0] == '/')) - snprintf(buf, sizeof(buf), "%s", - efreet_desktop_dir_get()); + if ((!path) || (!path[0]) || (!strcmp(path, "/"))) + snprintf(buf, sizeof(buf), "%s", efreet_desktop_dir_get()); + else if (path[0] == '/') + snprintf(buf, sizeof(buf), "%s/%s", efreet_desktop_dir_get(), path); else snprintf(buf, sizeof(buf), "%s-%s", efreet_desktop_dir_get(), path);