From owner-freebsd-gnome@FreeBSD.ORG Sat Sep 13 10:28:27 2003 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ADE1216A4BF for ; Sat, 13 Sep 2003 10:28:27 -0700 (PDT) Received: from lakemtao05.cox.net (lakemtao05.cox.net [68.1.17.116]) by mx1.FreeBSD.org (Postfix) with ESMTP id A392A43FCB for ; Sat, 13 Sep 2003 10:28:26 -0700 (PDT) (envelope-from mezz7@cox.net) Received: from mezz.mezzweb.com ([68.103.37.247]) by lakemtao05.cox.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with ESMTP id <20030913172824.KZOK10592.lakemtao05.cox.net@mezz.mezzweb.com>; Sat, 13 Sep 2003 13:28:24 -0400 Date: Sat, 13 Sep 2003 12:27:24 -0500 To: Alexander Leidinger References: <20030913161106.30288fe4.Alexander@Leidinger.net> From: Jeremy Messenger Content-Type: text/plain; format=flowed; charset=utf-8 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: In-Reply-To: <20030913161106.30288fe4.Alexander@Leidinger.net> User-Agent: Opera7.20/Linux M2 build 459 cc: freebsd-gnome@freebsd.org Subject: Re: Need the help on hack gDesklets to kill the 'Linuxish' in Python. X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Sep 2003 17:28:27 -0000 On Sat, 13 Sep 2003 16:11:06 +0200, Alexander Leidinger wrote: > On Sat, 13 Sep 2003 02:46:41 -0500 > Jeremy Messenger wrote: > >> The new version of gDesklets just released yesterday and it has the new >> directory called libgdesklets. All of them will not work on FreeBSD, >> because it is too 'Linuxish' by read the /proc/* stuff. They are written >> in Python and I don't know Python that much and much, but I am trying to >> learn it. The gDesklets developer said that they will accept the >> patch(es)[1] as long it will work on Linux too, so you can send me the >> patch(es) too and I will add it in the gDesklets port until one of your >> patch(es) make it in gDesklets. It doesn't matter if you only can get it >> works on FreeBSD but not on Linux, then just send it to me. > >> [1] Send the patch(es) to gDesklets at http://bugzilla.gnome.org .. > > Patches attached, because of lack of a Display which uses them I haven't > tested the patches... beware, it may eat your pets because there are > maybe some typos. Awsome, thanks! Is it ok for you if I add your name and email (a credit) in the top of each patches? I haven't test those patches yet, but I will this afternoon. > The new version of gdesklets also doesn't update the weather and pi's > network desklet... Yeah, I don't know when someone will update them.. SysInfo[1] is the best applet to test right now, it depends on libgdesklets. :-) Umm, have you sent to gdesklets buzilla, yet? Or, do you want me to do it for you? I learn something new from your patches.. :-) I usually use the 'import sys' to find the system like this: ========================= if sys.platform in ['linux']: Stuff only work for Linux.. elif sys.platform in ['freebsd4', 'freebsd5']: Stuff only work for FreeBSD 4 and 5 ========================= [1] http://gdesklets.gnomedesktop.org/categories.php?func=gd_show_app&gd_app_id=56 Thanks again, Mezz > Bye, > Alexander. -- bsdforums.org 's moderator, mezz.