Reply
Thread Tools
Posts: 3 | Thanked: 0 times | Joined on Aug 2006
#1
Hello,

I have two little questions:

1) How can I get a list of installed applications in the Internet tablet device? Can those be found in a specific directory, or is there some other way?

2) Is there a way for getting information about how much free drive space is left in the system?

I appreciate any help!
 
Posts: 123 | Thanked: 6 times | Joined on Dec 2005 @ Los Angeles
#2
Look under Tools->Application Manager
and Tools->Control Panel->Memory
 
Posts: 3 | Thanked: 0 times | Joined on Aug 2006
#3
Sorry, I was a bit inaccurate. I meant that I'd need to get the application list and free memory from C code. I'm implementing an application that needs check those two parameters. Any ideas?
 
aflegg's Avatar
Posts: 1,463 | Thanked: 81 times | Joined on Oct 2005 @ UK
#4
The applications are maintained using dpkg, either find a library which interfaces with /var/lib/dpkg, or parse it directly, or parse the output of dpkg -l.

As for free memory, standard df-type functionality will do it, statfs(2) probably being your best bet.

HTH,

Andrew
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
Now known as
Jaffa
 
Posts: 3 | Thanked: 0 times | Joined on Aug 2006
#5
Thank you for the reply!

I have tried statfs, but unfortunately it doesn't give the right values. If I compare the statfs's values to the values of Control panel -> Memory, they are quite different.
 
aflegg's Avatar
Posts: 1,463 | Thanked: 81 times | Joined on Oct 2005 @ UK
#6
Remember that JFFS2 on the internal flash is compressed, so you'll always be estimating anyway.
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
Now known as
Jaffa
 
Reply


 
Forum Jump


All times are GMT. The time now is 20:51.