video browser - use efreet to get videos dir as opposed to hardcoding

This commit is contained in:
Carsten Haitzler 2016-08-20 12:01:51 +09:00
parent 94cc3073f8
commit d328e836a6
1 changed files with 6 additions and 1 deletions

View File

@ -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);
}