Wary Puppy 5.1.4.1 released

This is an emergency bugfix upgrade of Wary 5.1.4. The problem is described in this blog post:
http://bkhome.org/blog/?viewDetailed=02452

Release notes:
http://distro.ibiblio.org/quirky/wary-5.1.4.1/release-Wary-5.1.4.1.htm

Download:
http://distro.ibiblio.org/quirky/wary-5.1.4.1/

If you already have downloaded 5.1.4, the upgraded PETs can be installed, so no need to upgrade to 5.1.4.1. The PETs are in the top (blog) link.

NOTICE TO ALL DEVELOPERS
If you maintain any script that uses gtkdialog, please test with the gtkdialog PET that is in the 'common' repo:
http://distro.ibiblio.org/quirky/pet_packages-common/gtkdialog-0.7.21-thunor224-w5.pet

This is the version of gtkdialog that is currently chosen by default in all Woof-built puppies. I would like to be sure that all the scripts out there run on it. Unless some big bug is found in it, I intend to leave it at that version (revision 224) for some considerable time -- therefore, if you are testing with a later revision of gtkdialog, please test that it still works with 224.

Note, as well as the bugfix for the file-select dialog, there was another thing broken in some scripts, the password-entry box:
http://bkhome.org/blog/?viewDetailed=02423

EDIT Sept 1 2011:
A solution for the gtkdialog problem: http://bkhome.org/blog/?viewDetailed=02455


Posted on 1 Sep 2011, 9:05


Comments:

Posted on 31 Aug 2011, 24:37 by Sage
Touchpad problem resolved
Perhaps it's because I usually eschew laptops in my daily round? I found the 'touchpad tapping' enable under 'Mouse Wizard/Choose type of mouse' and not, as expected, under 'Configure your touchpad'.
Don't recall it being like this when I last ran P on a laptop? Maybe that was series 2 or 3?
Any road up, doesn't seem to be 'intuitive' ?


Posted on 32 Aug 2011, 7:04 by scottman
VLC-GTK
This is obviously not a priority for you but VLC-GTK needs to be updated, too.. I have updated it - the old gtkdialog was accepting a bad syntax of mine, so VLC-GTK 'worked', but I'm now using 0.7.21, which does not accept the bad syntax - so enabling the 'Play File' button (etc) does not work, when the playback file is chosen..

I have not added anything that needs newer gtkdialogs, just fixes.. I will upload to the Puppy forum soon...



Posted on 2 Sep 2011, 6:48 by broomdodger
trash -- view summary -- empty
This is the first time I have put something in the 'Trash', usually right click 'delete'.

Went to empty trash and noticed 'View Summary', great check it out. But :( it was empty even though two items were is the trash.


Posted on 2 Sep 2011, 6:51 by broomdodger
trash -- view summary -- empty
Oops, forgot to say:

wary 5.1.4.1
frugal



Posted on 4 Sep 2011, 20:21 by disciple
broomdodger's missing trash summary
My Puppy is 4.1.1, but I have tested the Trash summary feature with the latest gtkdialog and with r224, so I doubt that it is an issue caused by the gtkdialog updates.

Can you call "gtkdialog3" in Wary 5.1.4.1? I'm a little unclear...
Does the summary feature work for others using Wary 5.1.4.1?

Broomdodger: if you also have an older version of Puppy, does the summary feature work in it? What if you copy the contents of your Wary trash into the other version, does it still work there?

Would it be possible for you to zip up the contents of your trash and send them to me so I can try to find the problem?


Posted on 4 Sep 2011, 24:22 by broomdodger
re: broomdodger's missing trash summary
disciple

wary5.1.1
wary5.1.3
both frugal, both restart from ram
same result, the summary is empty

Any other versions you would like me to try?

I can zip the .Trash folder, or do you want the Trash script?

Where to send?



Posted on 4 Sep 2011, 24:26 by broomdodger
re: broomdodger's missing trash summary
>Can you call "gtkdialog3" in Wary 5.1.4.1?

Is this what you mean by call?

which gtkdialog3
/usr/sbin/gtkdialog3

gtkdialog3 --help
Usage:
gtkdialog3 [OPTION...]
Create dialog boxes and windows according to the given dialog description.For more information try 'info gtkdialog'.

Help Options:
-h, --help Show help options
--help-all Show all help options
--help-gtk Show GTK+ Options

Application Options:
-v, --version Print version information and exit.
-d, --debug Debug mode prints the processed characters.
-p, --program=variable Get the GUI description from the environment.
-g, --glade-xml=filename Get the GUI description from this Glade file.
-f, --file=filename Get the GUI description from a regular file.
-i, --include=filename Include the given file when executing.
-e, --event-driven=filename Execute the file as an event driven program.
-s, --stdin Get the GUI description from standard input.
-w, --no-warning Suppress warning messages.
-G, --geometry=[XxY][+W+H] The placement and the size of the window.
-c, --center Center the windows on the screen.
--print-ir Print the internal representation and exit.
--display=DISPLAY X display to use



Posted on 5 Sep 2011, 7:21 by disciple
re: broomdodger's missing trash summary
> wary5.1.1
> wary5.1.3
> both frugal, both restart from ram
> same result, the summary is empty
>
> Any other versions you would like me to try?

A 4.x series Puppy would be good if you have one. But don't bother if the problem occurs regardless of what is in the trash.

> I can zip the .Trash folder, or do you want the Trash script?
>
> Where to send?

Yes, PM the .Trash folder to me on the forum. But again, don't bother if you have the same problem regardless of what is in the trash. In that case I think I'd need to download Wary and test.

> Is this what you mean by call?

Yes, I just wanted to be sure it was in the $PATH with the name gtkdialog3.

Thanks.


Posted on 5 Sep 2011, 10:55 by broomdodger
re: broomdodger's missing trash summary
wary5.1.1
wary5.1.3
wary5.1.4.1
view summary fails with ANY file added to trash

puppy 4.3.1
view summary works ok

Would you like me to download a quirky?



Posted on 5 Sep 2011, 14:03 by disciple
re: broomdodger's missing trash summary
No, don't worry, I'll check out wary.


Posted on 6 Sep 2011, 22:31 by disciple
re: missing trash summary
Well, I didn't even need to check out wary. I tried Quirky 1.1 and it is broken there too. Presumably the fact this wasn't picked up earlier indicates people don't actually use the Trash...

The problem is that this line is blanking /tmp/trashitems:
cat /tmp/trashitems | sed -e 's/</?/g' | sed -e 's/>/?/g' > /tmp/trashitems

We can fix it simply by eliminating my Useless Use Of Cat, even if we don't touch the Useless Use Of Sed and Useless Use Of A Temporary File :)
When I have some time I should do a lot of tidying of the code in the trash.

But why is the file being blanked? Is something broken in Woof/Quirky? Or was I relying on something being broken in old versions of Puppy?
This seems like something which would cause great confusion to novice coders (like myself ;) ) everywhere.
4.1.1 and Quirky 1.1 seem to have the same bash and cat. What else could be the cause?

# cat /tmp/test
hello
# cat /tmp/test|head
hello
# cat /tmp/test
hello
# cat /tmp/test|head>/tmp/test
# cat /tmp/test
#


Posted on 7 Sep 2011, 7:39 by BarryK
Code is wrong
You should never do this:

# cat /tmp/test|head>/tmp/test

There is nothing wrong with Bash.

Reading a file, piping it, then writing back to same file, is bound to break it.

You should write to some other file:

# cat /tmp/test|head>/tmp/test2

Or:

NEWSTUFF="`cat /tmp/test | head`"
echo "$NEWSTUFF" > /tmp/test

Also, when piping, Bash/Ash does not guarantee completion before the next line of the script is executed. Therefore, in the first solution you should use "sync" before reading /tmp/test2:

# cat /tmp/test|head>/tmp/test2
# sync
# cat /tmp/test2

...note, in the vast majority of cases the "sync" is not needed, but for very long pipes it definitely is.

The example using "NEWSTUFF" does not need "sync".



Posted on 7 Sep 2011, 10:03 by disciple
But
> You should never do this:

I know now I should never do it, I didn't know back then when I wrote it :)

> Reading a file, piping it, then writing back to same file, is bound to break it.

except it works in old puppies... (and in msys for that matter)

Thanks for the information on sync - I thought it was just needed to remove a disk, or protect against power failure.


Posted on 8 Sep 2011, 20:17 by linuxman
Nvidia kernel module not loaded

Can't get my Nvidia drivers working in this version using 71.86. I tried copying the driver to the same directory as 5.1.3 (where it works), as it seems to not be in the same location anymore. But the system can't find it when I modprobe nvidia.

I copied /lib/modules/2.6.32-smp/nvidia/nvidia.ko into /lib/modules/2.6.32-smp/kernel/drivers/video and ../kernel/video/nvidia. Could someone help me figure this out ?

Thanks


Posted on 10 Sep 2011, 9:06 by BarryK
re sync
I probably should stop giving that advice about 'sync' being needed after a long pipe.
I did experience the problem a long time ago, years ago, where a long pipe was writing to a file, then the file was being read in the next line of the script, and I found without a sync that the file was being read before it had been fully written to in the previous line, which caused an error. A sync fixed it.

However, I really need to create some code that reproduces that situation. Perhaps there was some other factor at the time that caused the problem. So, perhaps take my advice with a grain of salt.