openbsd-ports/x11/gtk-theme-switch/patches/patch-switch_c
naddy 0df3e38814 Import gtk-theme-switch 1.0.1.
Submitted by Nick Nauwelaerts <nick@nauwelaerts.net>.

GTK Theme Switch is a small and fast command line utility to switch GTK themes
on the fly.
2003-01-14 01:01:19 +00:00

18 lines
720 B
Plaintext

$OpenBSD: patch-switch_c,v 1.1.1.1 2003/01/14 01:01:19 naddy Exp $
--- switch.c.orig Tue May 28 12:32:34 2002
+++ switch.c Tue May 28 12:32:51 2002
@@ -679,11 +679,11 @@ static short install_tarball (gchar *pat
if (path[0] != '/')
{
gchar *cwd = g_get_current_dir();
- command = g_strdup_printf ("tar --directory %s -xzf %s/%s 2>/dev/null", themedir, cwd, path);
+ command = g_strdup_printf ("tar -C %s -xzf %s/%s 2>/dev/null", themedir, cwd, path);
g_free (cwd);
}
else
- command = g_strdup_printf ("tar --directory %s -xzf %s 2>/dev/null", themedir, path);
+ command = g_strdup_printf ("tar -C %s -xzf %s 2>/dev/null", themedir, path);
/* Ensure that ~/.themes exists */
mkdir (themedir, 755);