Fix from Rajkumar Sivasamy for extracting themes under Solaris due to not using

GNU tar.

gnome-control-center relies on the tar/gzip/bzip2 *binaries* to extract themes.
Subsequently it can't tell if things go wrong. This is one very good reason why
fixing the tar/gz/bz2 vfs methods would be a very good thing.
This commit is contained in:
Andrew Sobala 2003-06-06 15:05:13 +00:00
parent f6b8d18eea
commit 079e8f507d
2 changed files with 10 additions and 4 deletions

View file

@ -1,3 +1,9 @@
2003-06-06 Andrew Sobala <aes@gnome.org>
* 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 <aes@gnome.org>
* themus-properties-view.c: fix description word wrapping

View file

@ -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);