openbsd-ports/sysutils/libgksu/patches/patch-libgksu_test-gksu_c
ajacoutot ec9f1973a7 - change schemas file location
- don't hardcode /usr/X11R6, use X11BASE and SUBST_CMD
- add CONFIGURE_SHARED
- bump
2009-01-19 17:42:50 +00:00

37 lines
1.2 KiB
Plaintext

$OpenBSD: patch-libgksu_test-gksu_c,v 1.2 2009/01/19 17:42:50 ajacoutot Exp $
--- libgksu/test-gksu.c.orig Thu Jan 31 21:00:44 2008
+++ libgksu/test-gksu.c Thu Jan 31 21:01:04 2008
@@ -63,12 +63,12 @@ main (int argc, char **argv)
context = gksu_context_new ();
context->debug = TRUE;
- context->command = g_strdup ("/usr/bin/xterm");
+ context->command = g_strdup ("${X11BASE}/bin/xterm");
if (try_su)
{
printf ("Testing gksu_su...\n");
- gksu_su ("/usr/bin/xterm", &error);
+ gksu_su ("${X11BASE}/bin/xterm", &error);
if (error)
fprintf (stderr, "gksu_su failed: %s\n", error->message);
@@ -85,7 +85,7 @@ main (int argc, char **argv)
{
printf ("Testing gksu_sudo...\n");
error = NULL;
- gksu_sudo ("/usr/bin/xterm", &error);
+ gksu_sudo ("${X11BASE}/bin/xterm", &error);
if (error)
fprintf (stderr, "gksu_sudo failed: %s\n", error->message);
@@ -103,7 +103,7 @@ main (int argc, char **argv)
{
printf ("Testing gksu_run...\n");
error = NULL;
- gksu_run ("/usr/bin/xterm", &error);
+ gksu_run ("${X11BASE}/bin/xterm", &error);
if (error)
fprintf (stderr, "gksu_run failed: %s\n", error->message);