From d328e836a65dd1bb783936ce219a719d983ca833 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Sat, 20 Aug 2016 12:01:51 +0900 Subject: [PATCH] video browser - use efreet to get videos dir as opposed to hardcoding --- src/bin/browser.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/bin/browser.c b/src/bin/browser.c index 22f1134..b2df3f2 100644 --- a/src/bin/browser.c +++ b/src/bin/browser.c @@ -189,8 +189,13 @@ static void _fill_thread(void *data EINA_UNUSED, Ecore_Thread *th) { char buf[PATH_MAX]; + const char *vids; - snprintf(buf, sizeof(buf), "%s/Videos", eina_environment_home_get()); + vids = efreet_videos_dir_get(); + if (vids) + snprintf(buf, sizeof(buf), "%s", vids); + else + snprintf(buf, sizeof(buf), "%s/Videos", eina_environment_home_get()); _fill_scan(th, NULL, buf); }