From 52a5c2c729977d09476c94732e3b89f7974b2784 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 30 Jul 2012 14:25:36 +0000 Subject: [PATCH] passing a path along with "desktop" device to efm should allow you to navigate relative to your desktop directory. now it does SVN revision: 74591 --- src/bin/e_fm.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/bin/e_fm.c b/src/bin/e_fm.c index 60fcaa4de..e58750112 100644 --- a/src/bin/e_fm.c +++ b/src/bin/e_fm.c @@ -3117,14 +3117,20 @@ _e_fm2_dev_path_map(const char *dev, const char *path) } else if (strcmp(dev, "desktop") == 0) { + size_t size; /* this is a virtual device - it's where your favorites list is * stored - a dir with .desktop files or symlinks (in fact anything * you like */ - if (eina_strlcpy(buf, efreet_desktop_dir_get(), sizeof(buf)) >= sizeof(buf)) - return NULL; + size = eina_strlcpy(buf, efreet_desktop_dir_get(), sizeof(buf)); + if (size >= sizeof(buf)) return NULL; ecore_file_mkpath(buf); + if (path) + { + if (eina_strlcat(buf + size, path, sizeof(buf) - size) >= sizeof(buf) - size) + return NULL; + } } else if (strcmp(dev, "temp") == 0) PRT("/tmp");