video browser - use efreet to get videos dir as opposed to hardcoding
This commit is contained in:
parent
94cc3073f8
commit
d328e836a6
|
@ -189,7 +189,12 @@ static void
|
||||||
_fill_thread(void *data EINA_UNUSED, Ecore_Thread *th)
|
_fill_thread(void *data EINA_UNUSED, Ecore_Thread *th)
|
||||||
{
|
{
|
||||||
char buf[PATH_MAX];
|
char buf[PATH_MAX];
|
||||||
|
const char *vids;
|
||||||
|
|
||||||
|
vids = efreet_videos_dir_get();
|
||||||
|
if (vids)
|
||||||
|
snprintf(buf, sizeof(buf), "%s", vids);
|
||||||
|
else
|
||||||
snprintf(buf, sizeof(buf), "%s/Videos", eina_environment_home_get());
|
snprintf(buf, sizeof(buf), "%s/Videos", eina_environment_home_get());
|
||||||
_fill_scan(th, NULL, buf);
|
_fill_scan(th, NULL, buf);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue