char *debug = NULL;
FILE *fp = NULL;
char *tmp = NULL;
+ char *tizen_vms_path = NULL;
if (nb_debug_options != -1)
return; /* already initialized */
free(tmp);
}
- strcpy(logfile, get_tizen_vms_path());
+ //to make logfile, create tizen_vms dir
+ tizen_vms_path = (char*)get_tizen_vms_path();
+ if(access(tizen_vms_path, R_OK) != 0){
+ g_mkdir_with_parents(tizen_vms_path, 0755);
+ }
+ strcpy(logfile, tizen_vms_path);
strcat(logfile, EMULMGR_LOGFILE);
+
+ free(tizen_vms_path);
if(access(logfile, F_OK | R_OK) == 0)
remove(logfile);
return conf_path;
}
-/* get_tizen_vms_arch_path = "/home/{USER}/tizen_vms/{ARCH}" */
+/* get_tizen_vms_arch_path = "/home/{USER}/.tizen_vms/{ARCH}" */
const gchar *get_tizen_vms_arch_path(void)
{
char *tizen_vms_arch_path;
return tizen_vms_arch_path;
}
-/* get_tizen_vms_path = "/home/{USER}/tizen_vms" */
+/* get_tizen_vms_path = "/home/{USER}/.tizen_vms" */
const gchar *get_tizen_vms_path(void)
{
- static const char tizen_vms[] = "/tizen_vms";
+ static const char tizen_vms[] = "/.tizen_vms";
#ifndef _WIN32
char *homedir = (char*)g_getenv("HOME");
#else
return tizen_vms_path;
}
-/* get_screenshot_path = "/home/{USER}/tizen_vms/screenshots" */
+/* get_screenshot_path = "/home/{USER}/.tizen_vms/screenshots" */
const gchar *get_screenshots_path(void)
{
const char subdir[] = "/screenshots";
int status;
char *skin = NULL;
char full_glade_path[MAX_LEN];
- char *tizen_vms_path = (char*)get_tizen_vms_path();
- if(access(tizen_vms_path, R_OK) != 0){
- g_mkdir_with_parents(tizen_vms_path, 0755);
- }
- free(tizen_vms_path);
-
+
working_dir = g_path_get_dirname(buf);
status = g_chdir(working_dir);
if(status == -1)