Lines 188-193
Link Here
|
188 |
|
188 |
|
189 |
gconf_client_set_string(client,"/desktop/gnome/peripherals/mouse/cursor_theme", name, NULL); |
189 |
gconf_client_set_string(client,"/desktop/gnome/peripherals/mouse/cursor_theme", name, NULL); |
190 |
gconf_client_set_int(client,"/desktop/gnome/peripherals/mouse/cursor_size", size, NULL); |
190 |
gconf_client_set_int(client,"/desktop/gnome/peripherals/mouse/cursor_size", size, NULL); |
|
|
191 |
|
192 |
|
193 |
FILE *fp; |
194 |
char *home_dir, config_file[80]; |
195 |
home_dir = getenv ("HOME"); |
196 |
strcpy (config_file, home_dir); |
197 |
strcat (config_file, "/.Xdefaults"); |
198 |
|
199 |
|
200 |
if((fp = fopen(config_file, "w")) != NULL) |
201 |
{ |
202 |
fprintf (fp, "Xcursor.theme : %s\nXcursor.size : %d\n",name,size); |
203 |
fclose (fp); |
204 |
} |
205 |
|
206 |
|
191 |
} |
207 |
} |
192 |
|
208 |
|
193 |
|
209 |
|