From owner-freebsd-gnome@FreeBSD.ORG Thu Nov 13 12:21:53 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 9EF1016A4CF for ; Thu, 13 Nov 2003 12:21:53 -0800 (PST) Received: from lakemtao06.cox.net (lakemtao06.cox.net [68.1.17.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6006F43FAF for ; Thu, 13 Nov 2003 12:21:52 -0800 (PST) (envelope-from mezz7@cox.net) Received: from mezz.mezzweb.com ([68.103.32.11]) by lakemtao06.cox.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with ESMTP id <20031113202150.PTGN24575.lakemtao06.cox.net@mezz.mezzweb.com>; Thu, 13 Nov 2003 15:21:50 -0500 To: Franz Klammer References: <3FB3D404.2060303@webonaut.com> Message-ID: From: Jeremy Messenger Content-Type: text/plain; format=flowed; charset=iso-8859-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Thu, 13 Nov 2003 14:20:59 -0600 In-Reply-To: <3FB3D404.2060303@webonaut.com> User-Agent: Opera7.21/Linux M2 build 497 cc: gnome@freebsd.org Subject: Re: libdesklets/Disk.py - mounting point dedection 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: Thu, 13 Nov 2003 20:21:53 -0000 X-List-Received-Date: Thu, 13 Nov 2003 20:21:53 -0000 On Thu, 13 Nov 2003 19:57:08 +0100, Franz Klammer wrote: > the mountingpoint dedectin (at least on -current) didn't work > correctly. i geot this output if with "print data": > > ((4294967295L, '/dev/ad0s1a', '/', '?'), (4294967295L, 'devfs', '/dev', > '?'), (4 294967295L, '/dev/ad0s1e', '/usr', '?'), (4294967295L, > '/dev/ad0s1d', '/var', '? '), (4294967295L, 'linprocfs', > '/usr/compat/linux/proc', '?'), (4294967295L, 'pr ocfs', '/proc', '?'), > (4294967295L, '/dev/acd0', '/cdrom', '?')) > > as you can see the filesystem will not be dedected: '?'. > i've changed the code that it works like in the network-interface > dedection. Sysinfo now shows up the devices. here my code: Ummm... Well, doesn't it means, we should fix the libgtop instead fix the libdesklets/Disk.py? They removed the Linux'ish and use libgtop to allow the things work on the platforums. Make sense? Cheers, Mezz > def __poll_partitions(self): > > fd = os.popen("mount -p") > data = fd.readlines() > fd.close() > > partitions = [] > for lines in data: > fields = lines.strip().replace("\t", " ").split() > if (fields[2] in ("ext2", "ext3", "msdos", "vfat", "ntfs", > "hpfs" > "jfs", "reiserfs", "xfs", "qnx4", "adfs", > "ffs", > "hfs", "befs", "bfs", "efs", "iso9660", > "minix", > "sysv", "coda", "nfs", "udf", "ufs", > "xiafs")): > partitions.append((fields[0], fields[1])) > #end for > > return partitions > > the only thing that doesn't work in SysInfo now is to switch > from RAM to SWAP ... let's see ... :-) > > franz. -- bsdforums.org 's moderator, mezz.