[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#140858: marked as done (RFP: gtktrue -- gtk front-end for /bin/true)



Your message dated Thu, 3 Jul 2003 16:32:48 +0200
with message-id <20030703143248.GN17315@debian>
and subject line useless package
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 2 Apr 2002 03:17:13 +0000
>From ota-3@andrew.pimlott.net Mon Apr 01 21:17:13 2002
Return-path: <ota-3@andrew.pimlott.net>
Received: from rwcrmhc51.attbi.com [204.127.198.38] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 16sEnJ-0006yK-00; Mon, 01 Apr 2002 21:17:13 -0600
Received: from madstop.pimlott.net ([24.91.58.12]) by rwcrmhc51.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020402031641.UBPH7801.rwcrmhc51.attbi.com@madstop.pimlott.net>
          for <submit@bugs.debian.org>; Tue, 2 Apr 2002 03:16:41 +0000
Received: from andrew by madstop.pimlott.net with local (Exim 3.34 #1 (Debian))
	id 16sEVC-0004JP-00; Mon, 01 Apr 2002 21:58:30 -0500
From: Andrew Pimlott <ota-3@andrew.pimlott.net>
Date: Mon, 1 Apr 2002 21:58:30 -0500
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: RFP: gtktrue -- gtk front-end for /bin/true
Message-ID: <20020402025830.GA16560@pimlott.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.27i
X-Reportbug-Version: 1.48
Delivered-To: submit@bugs.debian.org

Package: wnpp
Version: N/A; reported 2002-04-01
Severity: wishlist

* Package name    : gtktrue
  Version         : 0.1.2
  Upstream Author : Joachim Nilsson <joachim.nilsson@mds.mdh.se>
* URL             : http://www.mds.mdh.se/~dat95jnn/linux/gtrue/
* License         : GPL
  Description     : gtk front-end for /bin/true

This package is unfortunately not being maintained upstream.
Perhaps a Debian developer would like to adopt it, and win the
unending gratitude of its users.

Also, I have an important patch.  I include the email I sent to the
author about this patch.  (The author has not responded.)

--- Begin forwarded mail ---

Joachim,

I ran into a problem using gtktrue in a script.  The script would
not complete if the user was not around to click on "Ok".  I think
power-users of gtktrue (such as myself) would like to be able to use
it non-interactively.  So I made a patch for this.  When invoked
with --batch-mode, gtktrue will display its message for a second,
then exit.

I understand that you are not very interested in maintaining gtktrue
anymore.  However, I still hope you will accept this patch, as it is
critical for anyone using gtktrue in enterprise applications.

Andrew

PS.  I oberved that there weren't enough code formatting styles in
the program, limiting its pedagogic value.  I have made a small
effort towards correcting this.

--- ./src/main.c.orig	Sun Nov 21 09:07:29 1999
+++ ./src/main.c	Thu Mar 28 11:05:14 2002
@@ -49,6 +49,8 @@
 			_("Compatible mode"), NULL},
 		{ "display", 'd', POPT_ARG_STRING, &display, 3,
 			_("Dispay to be used."), _("host.domain:0.0")},
+		{ "batch-mode", 'b', POPT_ARG_NONE, NULL, 4,
+			_("Batch mode"), NULL},
 		POPT_AUTOHELP
 		{ NULL, 0, 0, NULL, 0, NULL, NULL }
 	};
@@ -109,6 +111,10 @@
 					/* Set DISPLAY, but do not change system defaults ... */
 					if (0 != setenv ("DISPLAY", display, 0))
 						simulate_truth ();
+					break;
+
+				case 4:
+					batch_mode = 1;
 					break;
 					
 				default:
--- ./src/callbacks.h.orig	Thu Mar 28 10:58:25 2002
+++ ./src/callbacks.h	Thu Mar 28 10:59:21 2002
@@ -22,6 +22,8 @@
 
 #include <gtk/gtk.h>
 
+extern int batch_mode;
+
 void take_over (void);
 void whatisthematrix (char *truth);
 void simulate_truth (void);
--- ./src/callbacks.c.orig	Thu Mar 28 10:58:33 2002
+++ ./src/callbacks.c	Thu Mar 28 10:59:38 2002
@@ -32,6 +32,7 @@
 #include "support.h"
 
 static int simulation_mode = 0;
+int batch_mode = 0;
 static int no_absolute_truth = 1;
 
 static char *optional_truth;
--- ./src/interface.c.orig	Thu Mar 28 11:11:08 2002
+++ ./src/interface.c	Thu Mar 28 11:10:16 2002
@@ -82,6 +82,10 @@
   gtk_box_pack_start (GTK_BOX (hbox), text_label, FALSE, FALSE, 0);
   gtk_label_set_justify (GTK_LABEL (text_label), GTK_JUSTIFY_LEFT);
 
+    if (batch_mode) {
+        gtk_timeout_add(1000, take_over, NULL);
+    } else {
+
   hseparator = gtk_hseparator_new ();
   gtk_widget_set_name (hseparator, "hseparator");
   gtk_object_set_data (GTK_OBJECT (base_window), "hseparator", hseparator);
@@ -108,6 +112,7 @@
   gtk_signal_connect (GTK_OBJECT (ok_button), "clicked",
                       GTK_SIGNAL_FUNC (on_ok_button_clicked),
                       NULL);
+    }
 
   return base_window;
 }

--- End forwarded mail ---

-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux pimlott 2.2.20-madstop+ipsec+raid #4 Sat Feb 23 22:10:20 EST 2002 i586
Locale: LANG=C, LC_CTYPE=C

---------------------------------------
Received: (at 140858-done) by bugs.debian.org; 3 Jul 2003 14:44:52 +0000
>From mechanix@slider.rack66.net Thu Jul 03 09:32:49 2003
Return-path: <mechanix@slider.rack66.net>
Received: from slider.rack66.net [212.3.252.135] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 19Y58j-0006uH-00; Thu, 03 Jul 2003 09:32:49 -0500
Received: by slider.rack66.net (Postfix, from userid 1026)
	id B3415F27C; Thu,  3 Jul 2003 16:32:48 +0200 (CEST)
Date: Thu, 3 Jul 2003 16:32:48 +0200
From: Filip Van Raemdonck <mechanix@debian.org>
To: 140858-done@bugs.debian.org
Subject: useless package
Message-ID: <20030703143248.GN17315@debian>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.28i
Delivered-To: 140858-done@bugs.debian.org
X-Spam-Status: No, hits=-2.0 required=4.0
	tests=USER_AGENT_MUTT
	version=2.53-bugs.debian.org_2003_06_27
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_06_27 (1.174.2.15-2003-03-30-exp)

- This doesn't do anything useful.
- The only thing it does can be done with zenity if you really want to.
- It's unmaintained upstream.
- It's uses old and to become obsolete libraries (GTK+ 1)


Regards,

Filip

-- 
"Science is like sex: sometimes something useful comes out, but that is not
the reason we are doing it"
	-- Richard Feynman



Reply to: