[maemo-developers] Finding path of file / folder present on emulator

From: Daniil Ivanov daniil.ivanov at gmail.com
Date: Thu May 20 12:00:27 EEST 2010
Hi Pallavi!

   It works on N900 you may file a bug about scratchbox here:
   https://bugs.maemo.org/
   const char *dir = g_strdup(g_get_user_special_dir (G_USER_DIRECTORY_VIDEOS));
   if (!dir) {
      dir = g_strconcat (getenv(MYDOCSDIR), "/.videos, NULL);
   }
   printf("%s\n", dir ? dir : "NULL");
   g_free(dir);

Thanks, Daniil.

On Thu, May 20, 2010 at 11:23 AM, Pallavi Kandhare
<pallavi.kandhare at yahoo.com> wrote:
>
> Hi Daniil,
> I tried using suggested APIs
>
>  G_USER_DIRECTORY_DOCUMENTS,
>  G_USER_DIRECTORY_PICTURES,
>  G_USER_DIRECTORY_VIDEOS
>
> const char *dir = g_get_user_special_dir (G_USER_DIRECTORY_VIDEOS);
> if (dir == NULL)
>    printf("NULL");
> else
>    printf("%s",dir);
>
> But every time it returns me NULL value. It means the logical id isnt found. But these folders are present on N900 emulator
>
> Pls suggest if any thing else needs to be done?
>
> Thanks
>
>
>
>
> _______________________________________________
> maemo-developers mailing list
> maemo-developers at maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>
More information about the maemo-developers mailing list