HOWTO: programming

Puppy has always had a "HOWTO: write programs" local help page.

However, for for a long time I have been thinking that it would be more useful if online. I see often in the Puppy Forum, people asking what languages they should program in.

So, I have moved this HOWTO online:

Posted on 18 Nov 2010, 14:49


Posted on 18 Nov 2010, 20:27 by ICPUG
Where to put SFS
Very interesting and useful synopsis of the power of Puppy and its devx.sfs.

Just one point - you mention putting the sfs in the /mnt/home or the same place as the pupsave file.

If running a frugal install in a subdirectory. The /mnt/home is at the root of the partition holding the pupsave file and not in the same directory as the pupsave file.

I am prepared to be contradicted on this. Wary has been changing things so much recently I may be out of date. Certainly true of current official puppies.

Posted on 19 Nov 2010, 17:55 by Iguleder
Two debs fix
Barry, take a look at inline_get_compat:

FILESPEC="`cat $PKGLISTS_COMPAT | grep "$pPATTERN" | cut -f 7,8 -d '|' | tr '|' '/' | tr '\n' ' ' | tr -s ' ' | sed -e 's% $%%'`"
#...ex: pool/main/a/aide/aide_0.13.1-10ubuntu1_i386.deb pool/main/a/aide/aide-common_0.13.1-10ubuntu1_all.deb

If you have "aide" (just an example) in two repositories, FILESPEC will contain two "aide" packages. Both will be downloaded, processed and included in the main SFS.

To fix this problem, a loop needs to scan the packages in the third field of the current DISTRO_PKGS_SPECS entry and filter one FILESPEC entry for it, so each package has just one file.

Posted on 20 Nov 2010, 10:08 by disciple
how to write programs
Thanks Barry, you write nice documentation :)

You might consider adding xdotool to the list of tools to aid with scripting - it does a lot of things people often ask how to do

It would also be good to encourage the use of gtkbuilder nowadays rather than just libglade.