rem: fullpath = g_build_filename (G_DIR_SEPARATOR_S, g_get_home_dir (), ".gnome-desktop", filename, NULL);
add: fullpath = screenshot_make_filename_helper (filename, desktop_exists);
context: screenshot_make_filename (Totem *totem){	GtkWidget *radiobutton, *entry;	gboolean on_desktop;	char *fullpath, *filename;	int i = 0;	radiobutton = glade_xml_get_widget (totem->xml, "radiobutton2");	on_desktop = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON			(radiobutton));	if (on_desktop == TRUE)	{		filename = g_strdup_printf (_("Screenshot%d.png"), i);		fullpath = g_build_filename (G_DIR_SEPARATOR_S,				g_get_home_dir (), ".gnome-desktop", filename,				NULL);		while (g_file_test (fullpath, G_FILE_TEST_EXISTS) == TRUE				&& i < G_MAXINT)		{			i++;			g_free (filename);			g_free (fullpath);			filename = g_strdup_printf (_("Screenshot%d.png"), i);			fullpath = g_build_filename (G_DIR_SEPARATOR_S,					g_get_home_dir (), ".gnome-desktop",					filename, NULL);		}		g_free (filename);	} else {		entry = glade_xml_get_widget (totem->xml, "combo-entry1");		if (gtk_entry_get_text (GTK_ENTRY (entry)) == NULL)			return NULL;		fullpath = g_strdup (gtk_entry_get_text (GTK_ENTRY (entry)));	}	return fullpath;}