Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 23 Nov 2014, 18:45
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
gxmessage/yaf-splash not displayed from script
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [28 Posts]   Goto page: Previous 1, 2
Author Message
mikeb


Joined: 23 Nov 2006
Posts: 8645

PostPosted: Mon 28 Apr 2014, 05:36    Post subject:  

Quote:
. you could use the real yaf-splash but it does not support unicode which is why it should never have appeared in the first place.. Very Happy


yes did mention that ...just also mentioned that ugly fonts seemed to be the ones chosen.

It was unmaintained for years too iirc..... good choice.

mike
Back to top
View user's profile Send private message 
jamesbond

Joined: 26 Feb 2007
Posts: 2230
Location: The Blue Marble

PostPosted: Mon 28 Apr 2014, 06:04    Post subject:  

mikeb wrote:
yes did mention that ...just also mentioned that ugly fonts seemed to be the ones chosen.

Ah I missed that part. In fact, it is quite straightforward to enable yaf-splash to work with UTF-8 string (I just did that). As for the font, it is not chosen, it's because X font is not configured properly (AFAIK Puppy already comes with Dejavu? - which is quite decent).

Quote:
It was unmaintained for years too iirc..... good choice.
My historical knowledge of Puppy is quite weak since I joined when Puppy 2.x was already on the full swing; so I could be wrong here. But my guess is yaf-splash was chosen because early Puppies didn't include GTK at all (and yaf-splash only depends on xlib). The same reason that jwm was chosen.

As for maintenance - it is such a small code and its functionality is more or less fixed; it doesn't require maintenance or new feature Smile I compiled yaf-splash 1.02 "as is" (no patch etc) on x86_64, and ARM, no changes needed.

_________________
Fatdog64, Slacko and Puppeee user. Puppy user since 2.13.
Contributed Fatdog64 packages thread
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8645

PostPosted: Mon 28 Apr 2014, 06:37    Post subject:  

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

. 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 ?

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.

mike
Back to top
View user's profile Send private message 
jafadmin

Joined: 19 Mar 2009
Posts: 440

PostPosted: Mon 28 Apr 2014, 10:12    Post subject:  

jafadmin wrote:
So I figured out that the compiled binary for yaf-splash is still in puppy in the
/usr/X11R7/bin directory. With a little goofing around with parameters I was able to get a halfway decent result with the following:
Code:

/usr/X11R7/bin/yaf-splash -bg green -font "Monospace" -placement "top" -margin 15 -outline 0 -display :0 -timeout 5 -text " VPN Monitor is Running . . . "


Maybe not as pretty as the gtkdialog version, but at least I can get it to run from the ip-up script with no problem.


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 ... Shocked

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.
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8645

PostPosted: Mon 28 Apr 2014, 12:17    Post subject:  

Quote:
I'm gonna take up radish farming.


its kinder on the hands compared to brussel sprouts....

mike
Back to top
View user's profile Send private message 
jamesbond

Joined: 26 Feb 2007
Posts: 2230
Location: The Blue Marble

PostPosted: Mon 28 Apr 2014, 12:39    Post subject:  

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.

Quote:
Quote:

. 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 Laughing 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 ... Shocked

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.
shot.png
 Description   yaf-splash patched for unicode (the terminal is urxvt).
 Filesize   17.71 KB
 Viewed   137 Time(s)

shot.png


_________________
Fatdog64, Slacko and Puppeee user. Puppy user since 2.13.
Contributed Fatdog64 packages thread
Back to top
View user's profile Send private message 
jafadmin

Joined: 19 Mar 2009
Posts: 440

PostPosted: Mon 28 Apr 2014, 12:55    Post subject:  

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 Confused

Thanks, though.
Back to top
View user's profile Send private message 
jamesbond

Joined: 26 Feb 2007
Posts: 2230
Location: The Blue Marble

PostPosted: Mon 28 Apr 2014, 13:42    Post subject:  

Is there a meaningful output from "yaf-splash blah blah blah > /tmp/output 2>&1" ?
_________________
Fatdog64, Slacko and Puppeee user. Puppy user since 2.13.
Contributed Fatdog64 packages thread
Back to top
View user's profile Send private message 
jafadmin

Joined: 19 Mar 2009
Posts: 440

PostPosted: Mon 28 Apr 2014, 18:05    Post subject:  

jamesbond wrote:
Is there a meaningful output from "yaf-splash blah blah blah > /tmp/output 2>&1" ?


nope. just a blank file. Sad
Back to top
View user's profile Send private message 
jafadmin

Joined: 19 Mar 2009
Posts: 440

PostPosted: Tue 29 Apr 2014, 01:11    Post subject:  

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:

/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
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8645

PostPosted: Tue 29 Apr 2014, 06:59    Post subject:  

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
Back to top
View user's profile Send private message 
jafadmin

Joined: 19 Mar 2009
Posts: 440

PostPosted: Tue 29 Apr 2014, 23:35    Post subject:  

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
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8645

PostPosted: Wed 30 Apr 2014, 04:46    Post subject:  

being stubborn is an asset

mike
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 2 [28 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0863s ][ Queries: 12 (0.0118s) ][ GZIP on ]