Thanks Paul. - I wonder if there is a way to get a script to pass the required parameters immediately AFTER opening leafpad, even though it appears they can't be passed at the time of initial execution?

Also - I have just noticed that in Precise 5.5 leafpad opens with wordwrap already enabled so I will scout around and see if I can see how that is done.

EDIT :I think I have found how it's done in Precise 5.5

If I open the hidden file /root/.config/leafpad/leafpadrc I see the following:

Code:

0.8.18.1
671
450
Monospace 12
1
0
0

and it seems to be the "1" below "monospace 12" which determines if wordwrap is on or not.

I have just tried modifying this in a different puppy and it works!

There is no doubt some other way this can be achieved too, so any info/guesses welcome!

For some odd reason, leafpad doesn't seem to make a default config file. However, if you make a blank file named "/root/.config/leafpad/leafpadrc" and then start leafpad and make config changes, those changes are all then saved.