--- gnome-control-center/capplets/theme-switcher/gnome-theme-installer.c	2005-01-31 19:32:35.000000000 +0530
+++ gnome-control-center-new/capplets/theme-switcher/gnome-theme-installer.c	2005-01-31 19:41:27.000000000 +0530
@@ -42,14 +42,16 @@ transfer_done_targz_idle_cb (gpointer da
 	int status;
 	gchar *command;
 	gchar *path = data;
+	gchar *dir = g_path_get_dirname (path);
 
 	/* this should be something more clever and nonblocking */
-	command = g_strdup_printf ("sh -c 'cd \"%s/.themes\"; gzip -d -c < \"%s\" | tar xf -'",
-				   g_get_home_dir (), path);
+	command = g_strdup_printf ("sh -c 'cd \"%s\"; gzip -d -c < \"%s\" | tar xf -'",
+				   dir, path);
 	if (g_spawn_command_line_sync (command, NULL, NULL, &status, NULL) && status == 0)
 		gnome_vfs_unlink (path);
 	g_free (command);
 	g_free (path);
+	g_free (dir);
 
 	return FALSE;
 }
@@ -71,14 +73,16 @@ transfer_done_tarbz2_idle_cb (gpointer d
 	int status;
 	gchar *command;
 	gchar *path = data;
+	gchar *dir = g_path_get_dirname (path);
 
 	/* this should be something more clever and nonblocking */
-	command = g_strdup_printf ("sh -c 'cd \"%s/.themes\"; bzip2 -d -c < \"%s\" | tar xf -'",
-				   g_get_home_dir (), path);
+	command = g_strdup_printf ("sh -c 'cd \"%s\"; bzip2 -d -c < \"%s\" | tar xf -'",
+				   dir, path);
 	if (g_spawn_command_line_sync (command, NULL, NULL, &status, NULL) && status == 0)
 		gnome_vfs_unlink (path);
 	g_free (command);
 	g_free (path);
+	g_free (dir);
 
 	return FALSE;
 }
--- gnome-control-center/capplets/theme-switcher/ChangeLog	2005-01-06 17:24:55.000000000 +0530
+++ gnome-control-center-new/capplets/theme-switcher/ChangeLog	2005-01-31 19:40:01.000000000 +0530
@@ -1,3 +1,9 @@
+2005-01-31  Muktha  <muktha.narayan@wipro.com>
+
+	* gnome-theme-installer.c: (transfer_done_targz_idle_cb),
+	(transfer_done_tarbz2_idle_cb): install icon themes in
+	.icon directory. Fixes #165807.
+
 2005-01-06  Sebastien Bacher  <seb128@debian.org>
 
 	* gnome-theme-installer.c: (install_dialog_response): check the 
