Re: Finding path of file / folder present on emulator

2010-05-20 Thread Pallavi Kandhare
Hi, I am working on N900 emulator. When i use the following commands in my code getenv(HOME) or getenv(MYDOCSDIR) they give me the path present on Scratchbox file-system. N900 emulator contains some folders like Images listed inside File Manager folder. I want to find path of the Images

Re: Finding path of file / folder present on emulator

2010-05-20 Thread Daniil Ivanov
Hi Pallavi! You can use g_get_user_special_dir(G_USER_DIRECTORY_PICTURES); http://library.gnome.org/devel/glib/stable/glib-Miscellaneous-Utility-Functions.html#g-get-user-special-dir http://library.gnome.org/devel/glib/stable/glib-Miscellaneous-Utility-Functions.html#GUserDirectory

Re: Finding path of file / folder present on emulator

2010-05-20 Thread Pallavi Kandhare
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

Re: Finding path of file / folder present on emulator

2010-05-20 Thread Daniil Ivanov
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);

Re: Finding path of file / folder present on emulator

2010-05-17 Thread Daniil Ivanov
Hi Pallavi! And what is File Manager folder? If you are asking about user's home directory, then you can get it with getenv(HOME) or getenv(MYDOCSDIR) for MyDocs directory. Thanks, Daniil. On Mon, May 17, 2010 at 8:10 AM, Pallavi Kandhare pallavi.kandh...@yahoo.com wrote: I write my

Re: Finding path of file / folder present on emulator

2010-05-17 Thread David King
On 2010-05-16 22:10, Pallavi Kandhare pallavi.kandh...@yahoo.com wrote: I write my appliccation using ESbox. Then build the application and run it on Xephyr. This we call as emulator.   In the emulator I want to find the path of File Manager folder. Pls do tell me how can i do this. Do you