mikewalsh wrote: ↑Wed May 25, 2022 11:21 amHerrBert:- Is yaf-splash standard with Puppies, or does it need installing? (EDIT:- Answered my own question. Seems it's a sym-link to gtk-splash.)
I'm not @HerrBert ,but let me answer anyway because it's more complicated than you think.
yaf-splash is a tiny 25K binary written by John Morton in 2003 and was included in all Puppies up to 4.xx , usually in the directory /usr/X11R7/bin. Many scripts used it for splash messages.
In 2010 forum member mave posted a little script, named gtkdialog-splash that was supposed to mimick the original yaf-splash, though it still lacked many of the original's options.It remains unclear, why he felt a need to replace yaf-splash but the idea sparked the interest of other members who subsequently added more options.
In the following Golden Age of rock solid Puppies (Lupu, Slacko 5.x etc.) gtkdialog-splash was added to /usr/bin, together with a symlink named - you guessed it - yaf-splash. The original binary was left in /usr/X11R7/bin, probably for nostalgic reasons.
With the advent of woofCE the directory /usr/X11R7 was discarded, together with the yaf-splash binary. The gtkdialog-splash script was replaced by /usr/lib/gtkdialog/box_splash and gtkdialog-splash turned into a mere wrapper script for box_splash. Box_splash claims to be "compatible with yaf-splash" - which it is not.
Fast forward to 2021: yaf-splash is back as a binary in /usr/bin in @BarryK's EasyOS. BK explained the reason in this blog post. I'm not sure why he replaced all references to yaf-splash with references to gtkdialog-splash. IMHO yaf-splash has clear advantages over gtkdialog-splash.
The weak point of gtkdialog-splash, apart from its slowness, is its inability to splash a message "always-on-top" other windows, but this ability is crucial for alert messages. Here is where yaf-splash excels. It pops up on top of fullscreen windows and even keeps on top after a new "layer above" window tries to cover its area. It simply can't be covered by windows or trays.
The real yaf-splash has weak points too. It is Unicode agnostic and the syntax for the -font option can be very tricky but without customizing the font the message tends to look very ugly. It seems to run fine in other 32bit distros (I "borrowed" a copy from my Slacko 5.6 and placed it into Xenial 7.5 and it worked).
Here the usage info. Note the interesting and partly odd options:
Code: Select all
Usage: yaf-splash [ options ]
Where options include:
-text Message to display.
-timeout How long to display the message before
exiting. Default is 0, which means forever.
-clock Enable clock display.
-12 Display twelve hour time (default).
-24 Display twenty-four hour time.
-seconds Display seconds (default).
-noseconds Don't display seconds.
-countdown <date> Display a countdown instead of a clock.
Run `-countdown foo' to see date syntax.
-countdownquit Quit after the countdown has reached
zero (default).
-nocountdownquit Keep counting after reaching zero.
-geometry <geometry> Size and position of window.
-placement <placement name> A screen location, one of center, top,
bottom, right, left, top-right, top-left,
bottom-left, bottom-right. Defaults to center.
A specified placement will override -geometry.
-font <font> Name of an X font to use.
-transparent Make the window background be transparent,
if possible.
-nontransparent Don't (default).
-mirror Flip the text about the y axis. Useful for
back projection.
-nomirror Don't (default).
-fg Set the forground text colour (default: black).
-bg Set the background colour (default: white).
-bd Set the border colour (default: black).
-bw Set the border width (default: 2).
-outline Set the text outline width (default: 1).
-margin Set the margin size (default: 0).
I think it's best to regard yaf-splash and gtkdialog-splash as 2 distinctly different tools, each with its own cons and pros.