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

v-0.4.0
Carsten Haitzler 6 years ago
parent 94cc3073f8
commit d328e836a6
  1. 7
      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);
}

Loading…
Cancel
Save