diff --git a/vfs-methods/themus/ChangeLog b/vfs-methods/themus/ChangeLog index 750c26cf2..90fa32186 100644 --- a/vfs-methods/themus/ChangeLog +++ b/vfs-methods/themus/ChangeLog @@ -1,3 +1,9 @@ +2003-06-06 Andrew Sobala + + * theme-method.c: fix from Rajkumar Sivasamy (originally for control- + center) for extracting themes under default solaris install. WE NEED + VFS SUPPORT FOR ARCHIVES! ;-) + 2003-06-03 Andrew Sobala * themus-properties-view.c: fix description word wrapping diff --git a/vfs-methods/themus/theme-method.c b/vfs-methods/themus/theme-method.c index a056cf26e..78c6a9817 100644 --- a/vfs-methods/themus/theme-method.c +++ b/vfs-methods/themus/theme-method.c @@ -43,8 +43,8 @@ transfer_done_targz_idle_cb (gpointer data) gchar *path = data; /* this should be something more clever and nonblocking */ - command = g_strdup_printf ("sh -c 'gzip -d -c < \"%s\" | tar xf - -C \"%s/.themes\"'", - path, g_get_home_dir ()); + command = g_strdup_printf ("sh -c 'cd \"%s/.themes\"; gzip -d -c < \"%s\" | tar xf -'", + g_get_home_dir (), path); if (g_spawn_command_line_sync (command, NULL, NULL, &status, NULL) && status == 0) gnome_vfs_unlink (path); g_free (command); @@ -61,8 +61,8 @@ transfer_done_tarbz2_idle_cb (gpointer data) gchar *path = data; /* this should be something more clever and nonblocking */ - command = g_strdup_printf ("sh -c 'bzip2 -d -c < \"%s\" | tar xf - -C \"%s/.themes\"'", - path, g_get_home_dir ()); + command = g_strdup_printf ("sh -c 'cd \"%s/.themes\"; bzip2 -d -c < \"%s\" | tar xf -'", + g_get_home_dir (), path); if (g_spawn_command_line_sync (command, NULL, NULL, &status, NULL) && status == 0) gnome_vfs_unlink (path); g_free (command);