gxmessage/yaf-splash not displayed from script

Using applications, configuring, problems
Message
Author
jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#21 Post by jamesbond »

mikeb wrote:yaf-splash was introduced around puppy 2.17 iirc, last of the 2 series . GTK2 has been in puppy since at least 1.08.

Xdialog , gxmessage and gtkdialog were used and present before yaf splash. ...xmessage was retained rather than gxmessage cos it looked worse I assume.

So it was brought in when there were perfectly useable, visually pleasant tools, then thrown out again after many scripts were changed over and now there is a very hacky inefficient script to replace it and a series of confusing symlinks and a half hidden original binary.... all seems like a waste of peoples time thats all.
Thank you for educating me on the history. I agree that Xdialog and gtkdialog alone are more than enough to cover all the use cases.
. In fact, it is quite straightforward to enable yaf-splash to work with UTF-8 string (I just did that)
wonder why thats was not done... perhaps because it required more than a bash script ?
LOL :lol: yes you need to edit some (horrible horrible!) C code. Screenshot attached.
jafadmin wrote:Well, this didn't survive a reboot. It worked for hours, then for some inexplicable reason, just quit after a reboot.

Now I can't get it to work from a LiveCD.

Weirdness. Absolute weirdness ... :shock:

My best guess is that pppd is altering the environment in some way that breaks yaf-splash.

If I just execute the ip-up script stand-alone, yaf-splash works as expected. If the ip-up script is executed by the pppd process, it doesn't.

I'm gonna take up radish farming.
Hold that radish just yet. Add LD_LIBRARY_PATH=/usr/X11R7/lib:$LD_LIBRARY_PATH to your ip-up script. See if that helps.
Attachments
shot.png
yaf-splash patched for unicode (the terminal is urxvt).
(17.71 KiB) Downloaded 239 times
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

jafadmin
Posts: 1249
Joined: Thu 19 Mar 2009, 15:10

#22 Post by jafadmin »

jamesbond wrote: Hold that radish just yet. Add LD_LIBRARY_PATH=/usr/X11R7/lib:$LD_LIBRARY_PATH to your ip-up script. See if that helps.
Tried it. No difference :?

Thanks, though.

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#23 Post by jamesbond »

Is there a meaningful output from "yaf-splash blah blah blah > /tmp/output 2>&1" ?
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

jafadmin
Posts: 1249
Joined: Thu 19 Mar 2009, 15:10

#24 Post by jafadmin »

jamesbond wrote:Is there a meaningful output from "yaf-splash blah blah blah > /tmp/output 2>&1" ?
nope. just a blank file. :(

jafadmin
Posts: 1249
Joined: Thu 19 Mar 2009, 15:10

#25 Post by jafadmin »

I got yaf-splash working again. Here's how:

I created a link in /etc/ppp to /usr/X11R7/bin/yaf-splash

Then called it thusly:

Code: Select all

/etc/ppp/yaf-splash -bg green -font fixed -display :0 -placement "top" -margin 15 -outline 0 -timeout 5 -text " VPN Monitor is Running . . . " 
Is it pretty? No.
Does it make sense? No.
Do I know why this works like this? No.
Am I going to waste more time on it? No, I'm going to try radish farming. :wink:

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#26 Post by mikeb »

I'll grab the rubber boots... this computing stuff makes no sense to me either... and I likes farming ...after all we all need to eat and can live without computers.

mike

jafadmin
Posts: 1249
Joined: Thu 19 Mar 2009, 15:10

#27 Post by jafadmin »

So, feeling undeservedly bold, I put it in the can and made a .pet, anyway.

I'm a struggling man. I will soldier on, regardless.

http://murga-linux.com/puppy/viewtopic.php?t=93384

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#28 Post by mikeb »

being stubborn is an asset

mike

Post Reply