maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   A list of installed applications. Getting free drive space. (https://talk.maemo.org/showthread.php?t=2818)

Classic 2006-08-17 13:26

A list of installed applications. Getting free drive space.
 
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!

Tweak 2006-08-18 05:33

Look under Tools->Application Manager
and Tools->Control Panel->Memory

Classic 2006-08-18 08:37

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 2006-08-18 13:07

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

Classic 2006-08-23 08:50

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 2006-08-23 11:03

Remember that JFFS2 on the internal flash is compressed, so you'll always be estimating anyway.


All times are GMT. The time now is 07:07.

vBulletin® Version 3.8.8