Lines 91-106
Link Here
|
91 |
} |
91 |
} |
92 |
gtk_widget_destroy(GTK_WIDGET(user_data)); |
92 |
gtk_widget_destroy(GTK_WIDGET(user_data)); |
93 |
} |
93 |
} |
94 |
else if (strcmp(operation, "temp") == 0) { |
94 |
else if ((strcmp(operation, "temp") == 0) || strcmp(operation, "home") == 0) { |
95 |
strcat(file_name, "/tmp/gwcc_out.txt"); |
95 |
env_homedir = getenv("HOME"); |
96 |
} |
96 |
if (env_homedir == NULL) |
97 |
else if (strcmp(operation, "home") == 0) { |
97 |
return 1; |
98 |
env_homedir = getenv("HOME"); |
98 |
strcpy(file_name, env_homedir); |
99 |
if (env_homedir == NULL) { |
99 |
if (strcmp(operation, "home") == 0) |
100 |
strcpy(env_homedir, "/tmp"); |
100 |
strcat(file_name, "/gwcc_out.txt"); |
101 |
} |
101 |
else |
102 |
strcpy(file_name, env_homedir); |
102 |
strcat(file_name, "/gwcc_temp.txt"); |
103 |
strcat(file_name, "/gwcc_out.txt"); |
|
|
104 |
} |
103 |
} |
105 |
|
104 |
|
106 |
// Get the number (int) of current notebook page (0...n-1), |
105 |
// Get the number (int) of current notebook page (0...n-1), |