* patch by Rajkumar <rajkumar.siva@wipro.com> to fix the themes
2004-10-27 Sebastien Bacher <seb128@debian.org> * gnome-theme-installer.c: (transfer_done_targz_idle_cb), (transfer_done_tarbz2_idle_cb): * patch by Rajkumar <rajkumar.siva@wipro.com> to fix the themes installation with the non GNU versions of tar (Closes: #114553).
This commit is contained in:
parent
fe379bce54
commit
c67c245f28
2 changed files with 11 additions and 4 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2004-10-27 Sebastien Bacher <seb128@debian.org>
|
||||||
|
|
||||||
|
* gnome-theme-installer.c: (transfer_done_targz_idle_cb),
|
||||||
|
(transfer_done_tarbz2_idle_cb): *
|
||||||
|
patch by Rajkumar <rajkumar.siva@wipro.com> to fix the themes
|
||||||
|
installation with the non GNU versions of tar (Closes: #114553).
|
||||||
|
|
||||||
2004-10-27 Sebastien Bacher <seb128@debian.org>
|
2004-10-27 Sebastien Bacher <seb128@debian.org>
|
||||||
|
|
||||||
* gnome-theme-save.c: (setup_directory_structure):
|
* gnome-theme-save.c: (setup_directory_structure):
|
||||||
|
|
|
@ -45,8 +45,8 @@ transfer_done_targz_idle_cb (gpointer data)
|
||||||
gchar *path = data;
|
gchar *path = data;
|
||||||
|
|
||||||
/* this should be something more clever and nonblocking */
|
/* this should be something more clever and nonblocking */
|
||||||
command = g_strdup_printf ("sh -c 'gzip -d -c < \"%s\" | tar xf - -C \"%s/.themes\"'",
|
command = g_strdup_printf ("sh -c 'cd \"%s/.themes\"; gzip -d -c < \"%s\" | tar xf -'",
|
||||||
path, g_get_home_dir ());
|
g_get_home_dir (), path);
|
||||||
if (g_spawn_command_line_sync (command, NULL, NULL, &status, NULL) && status == 0)
|
if (g_spawn_command_line_sync (command, NULL, NULL, &status, NULL) && status == 0)
|
||||||
gnome_vfs_unlink (path);
|
gnome_vfs_unlink (path);
|
||||||
g_free (command);
|
g_free (command);
|
||||||
|
@ -74,8 +74,8 @@ transfer_done_tarbz2_idle_cb (gpointer data)
|
||||||
gchar *path = data;
|
gchar *path = data;
|
||||||
|
|
||||||
/* this should be something more clever and nonblocking */
|
/* this should be something more clever and nonblocking */
|
||||||
command = g_strdup_printf ("sh -c 'bzip2 -d -c < \"%s\" | tar xf - -C \"%s/.themes\"'",
|
command = g_strdup_printf ("sh -c 'cd \"%s/.themes\"; bzip2 -d -c < \"%s\" | tar xf -'",
|
||||||
path, g_get_home_dir ());
|
g_get_home_dir (), path);
|
||||||
if (g_spawn_command_line_sync (command, NULL, NULL, &status, NULL) && status == 0)
|
if (g_spawn_command_line_sync (command, NULL, NULL, &status, NULL) && status == 0)
|
||||||
gnome_vfs_unlink (path);
|
gnome_vfs_unlink (path);
|
||||||
g_free (command);
|
g_free (command);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue