From owner-freebsd-gnome@FreeBSD.ORG Thu Nov 13 10:57:11 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 D769216A4CE for ; Thu, 13 Nov 2003 10:57:11 -0800 (PST) Received: from sv02.webonaut.com (kirk.webonaut.com [212.41.243.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3880D43F93 for ; Thu, 13 Nov 2003 10:57:10 -0800 (PST) (envelope-from klammer@webonaut.com) Received: from localhost (localhost [127.0.0.1]) by sv02.webonaut.com (Postfix) with ESMTP id A318976421 for ; Thu, 13 Nov 2003 19:57:08 +0100 (CET) Received: from sv02.webonaut.com ([127.0.0.1]) by localhost (sv02.webonaut.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 45478-01 for ; Thu, 13 Nov 2003 19:57:06 +0100 (CET) Received: from webonaut.com (sisko.webonaut.com [212.41.243.28]) by sv02.webonaut.com (Postfix) with ESMTP id 19D4D7641F for ; Thu, 13 Nov 2003 19:57:06 +0100 (CET) Message-ID: <3FB3D404.2060303@webonaut.com> Date: Thu, 13 Nov 2003 19:57:08 +0100 From: Franz Klammer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5) Gecko/20031021 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gnome@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at webonaut.com Subject: 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 18:57:12 -0000 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: 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.