head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.18 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.16 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.14 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.12 pkgsrc-2011Q2-base:1.2 pkgsrc-2009Q4:1.2.0.10 pkgsrc-2009Q4-base:1.2 pkgsrc-2008Q4:1.2.0.8 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.6 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.4 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.2 pkgsrc-2008Q2-base:1.2 pkgsrc-2008Q1:1.1.1.1.0.8 pkgsrc-2008Q1-base:1.1.1.1 pkgsrc-2007Q4:1.1.1.1.0.6 pkgsrc-2007Q4-base:1.1.1.1 pkgsrc-2007Q3:1.1.1.1.0.4 pkgsrc-2007Q3-base:1.1.1.1 pkgsrc-2007Q2:1.1.1.1.0.2 pkgsrc-2007Q2-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.2 date 2008.05.12.12.04.29; author jmcneill; state dead; branches; next 1.1; 1.1 date 2007.04.17.21.44.41; author drochner; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2007.04.17.21.44.41; author drochner; state Exp; branches; next ; desc @@ 1.2 log @gnome-compiz-manager no longer works with compiz 0.6.2, bye bye @ text @$NetBSD: patch-aa,v 1.1 2007/04/17 21:44:41 drochner Exp $ --- libgnome-compiz-manager/gcm-application.c.orig 2007-02-27 01:01:01.000000000 +0100 +++ libgnome-compiz-manager/gcm-application.c @@@@ -652,6 +652,21 @@@@ gcm_application_get_pid (GCMApplication { #line 248 "gcm-application.gob" +#ifdef __NetBSD__ + char *cmd[] = { "/usr/bin/pgrep", 0, 0 }; + char pgreparg[100]; /* XXX whatever */ + char *out; + int res; + + selfp->pid = 0; + + snprintf(pgreparg, sizeof(pgreparg), "^%s$", + g_path_get_basename(selfp->real_name)); + cmd[1] = pgreparg; + res = g_spawn_sync(0, cmd, 0, 0, 0, 0, &out, 0, 0, 0); + if (res) + selfp->pid = atoi(out); +#else GDir * procdir; gchar * item; @@@@ -699,6 +714,7 @@@@ gcm_application_get_pid (GCMApplication g_free(itemdir); } g_dir_close(procdir); +#endif /* NetBSD */ return selfp->pid; }} @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ @ 1.1.1.1 log @import gnome-compiz-manager-0.10.4, a utility to configure compiz properties and to switch between metacity and compiz window managers @ text @@