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 Wed 01 Oct 2014, 18:30
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Zenity/Yad and scripts
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 2 of 5 Posts_count   Goto page: Previous 1, 2, 3, 4, 5 Next
Author Message
stu90


Joined: 25 Feb 2010
Posts: 1401
Location: England. Dell Inspiron 1501. Dpup

PostPosted: Fri 11 Mar 2011, 21:38    Post_subject:  

Makoto wrote:
Does Yad require Puppy 5, more or less, or can it be compiled for Puppy 4? I'm just wondering, because I've seen implications it requires newer versions of certain libs, that just aren't present (and not easily upgradable ones, like perhaps glib) in Puppy 4.


hello Makoto,
I don't use any of the older puppies so i am not sure?
Maybe try compiling it, i used the instructions posted by Technosaurus here:
http://murga-linux.com/puppy/viewtopic.php?t=35507
Back to top
View user's profile Send_private_message 
cowboy


Joined: 03 Feb 2011
Posts: 247
Location: North America; the Western Hemisphere; Yonder

PostPosted: Fri 11 Mar 2011, 23:42    Post_subject: stu90 avatars  

stu90,

sorry to intrude on the thread, and I truly apologize. But the rotating avatars are hilarious. 70's British sit-coms actors? right?

_________________
"Everywhere is within walking distance, if you have the time." - Steven Wright
Back to top
View user's profile Send_private_message 
Makoto


Joined: 03 Sep 2009
Posts: 1797
Location: Out wandering... maybe.

PostPosted: Sat 12 Mar 2011, 19:33    Post_subject:  

I was wondering, somewhat, if technosaurus or someone else might know, offhand, whether or not it links to glib or anything else of the sort. The website and documentation in the yad archive only mentions GTK 2.16 or higher as a dependency... not that I can recall what version of GTK2 is used by default in 4.3.1. Neutral

If it's not dependent upon glib or anything else like that, maybe the installs posted in this topic would work for me, as well. (I'd compile it myself, but I'm a little weary of trying to compile things at the moment... a little too much time spent tracking down dependencies. Laughing )

_________________
[ Puppy 4.3.1 JP, Frugal install | 1GB RAM | 1.3GB swap ] * My Pidgin Builds for Puppy 4.3.1+
In memory of our beloved American Eskimo puppy (1995-2010) and black Lab puppy (1997-2011).
Back to top
View user's profile Send_private_message 
technosaurus


Joined: 18 May 2008
Posts: 4351

PostPosted: Sat 12 Mar 2011, 23:43    Post_subject:  

All gtk deps are automatically included when you link it.

It can do the final link with -lgtk-x11-2.0 only ... the dynamic linker does the rest
I normally use the as-needed flag to allow backwards compat

4.3.x uses 2.14.7, AFAICT 2.16.6 is the last version without many annoying bugs - my pet is available somewhere in the forum, or try one of Barry's later versions with some workarounds.

It takes 1 min to download and compile and has no deps that are not in the devx... i'd do it but only have my Droid right now... for another week or so.

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
Makoto


Joined: 03 Sep 2009
Posts: 1797
Location: Out wandering... maybe.

PostPosted: Sun 13 Mar 2011, 00:41    Post_subject:  

Wouldn't I have to update glib, too, if I updated GTK2 to 2.16? I'm remembering from this topic how those that tried upgrading to 2.16 might have problems with a scrambled desktop (and you said you'd created one of the update pets before recalling the insert-key-kills-Seamonkey bug, too, I believe), as well.

...of course, others reading that topic will notice I asked about the version of GTK2 used in Puppy 4.3.1 there, too, a while back. Smile (I'd just prefer it if there was an easy way to tell the version... there's plenty of search engine links telling you it's extremely easy to do; all you have to do is check the Ubuntu package manager... Rolling Eyes Very Happy)

_________________
[ Puppy 4.3.1 JP, Frugal install | 1GB RAM | 1.3GB swap ] * My Pidgin Builds for Puppy 4.3.1+
In memory of our beloved American Eskimo puppy (1995-2010) and black Lab puppy (1997-2011).
Back to top
View user's profile Send_private_message 
seaside

Joined: 11 Apr 2007
Posts: 886

PostPosted: Sun 13 Mar 2011, 10:18    Post_subject:  

Ok, here's yad-0.9.0. compiled in Pup431. Just extract it to /usr/bin.

Cheers,
s
yad.tar.gz
Description  yad-0.9.0. compiled in pup431
gz

 Download 
Filename  yad.tar.gz 
Filesize  128.59 KB 
Downloaded  656 Time(s) 
Back to top
View user's profile Send_private_message 
stu90


Joined: 25 Feb 2010
Posts: 1401
Location: England. Dell Inspiron 1501. Dpup

PostPosted: Sun 13 Mar 2011, 10:45    Post_subject:  

Update for yad - 0.9.1 Very Happy
compiled in Lucid puppy.
yad-0.9.1-i486.pet
Description 
pet

 Download 
Filename  yad-0.9.1-i486.pet 
Filesize  34.59 KB 
Downloaded  924 Time(s) 
Back to top
View user's profile Send_private_message 
seaside

Joined: 11 Apr 2007
Posts: 886

PostPosted: Tue 15 Mar 2011, 18:18    Post_subject: Bfile
Sub_title: A password manager in Yad
 

I thought it might be interesting to try out some of the functions in yad-0.9.0., so here is "Bfile", a password manager.

Bfile uses Puppy's Bcrypt for encryption.

The first time opened you will be asked for an 8 digit password and when the Bfile program dialog opens, select "edit" and then enter data. When done editing and making sure that all items are highlighted, hit enter or ok. Anything not highlighted will not be saved.

If you select and enter an item in the main dialog, your default browser will open at the chosen URL and the Userid will be put on the clipboard. Locate the logon userid box and just paste. Return to the Bfile dialog, select the same Url item and then click on "PastePW". Next, find the logon password box and paste.

Note: After the data file Bfile.bfe has been created, and you wish to edit the contents, be sure that all items you want kept are highlighted before hitting "enter" or "ok". If you hit "enter" or "ok" and nothing is highlighted, all the data is erased. (Fortunately, a backup file is generated and if renamed from Bfile.bfeBAK to Bfile.bfe, all is recovered) If nothing needs to be changed, you can safely exit "edit" by clicking "cancel". There's no error checking. If you enter the wrong password or no password, an empty dialog is shown.

Code following is mainly a demo of some Yad functions, so don't be in any hurry to give up the Figaro password manager. Very Happy

What would really be nice is a linux program that operated like the Windows program, Roboform, where all the text entry boxes are automatically located and filled in - no matter what the webpage produces......

Cheers,
s
Code:

#!/bin/sh

# Bfile - Password Manager

editor () {
   
   BLOC=$(for entry in `echo "$PASS1
   $PASS1"| bcrypt -o  /root/Bfile.bfe`; do echo $entry;done |yad --separator=" " --width=500 --height=300 --center --title="Bfile Edit" --image="gtk-edit" --text="Edit-Delete-Add Url locations" --list --editable --multiple --column="Name" --column="Url" --column="UserId" --column="Password" --button="gtk-ok:0" --button="gtk-cancel:1") 
   
    [[ $? -ne 0 ]] && exit
    echo "$BLOC" >/tmp/Bfile
   echo "$PASS1
$PASS1"| bcrypt /tmp/Bfile
   
   mv /root/Bfile.bfe /root/Bfile.bfeBAK
   cp /tmp/Bfile.bfe /root/Bfile.bfe
   
}   


if [ -f /root/Bfile.bfe ]; then

   PASS1=`yad --title="Password" --entry --hide-text --image="gtk-dialog-authentication" --text="enter password"`
   [[ $? != 0 ]] && exit

else

warning=" "
   
while [ 1 ];do

   PASS=`yad --title="Password" --form --separator=" " --image="gtk-dialog-authentication" --text="$warning" --field="enter password:H" --field="reenter password:H"`
   
   PASS1=`echo $PASS | cut -d" " -f1`
   PASS2=`echo $PASS | cut -d" " -f2`
   
   if [ `expr length $PASS1` -lt 8 ]; then
      warning="<b><span color='"'orange'"'>Password needs to be at least 8 characters  </span></b>"
      continue
   fi
   
   if [[ "$PASS1" != "$PASS2" ]] ; then
      warning="<b><span color='"'red'"'>Passwords do not match - try again  </span></b>"
      continue
   fi
   
   break
   
done

fi

while true; do
         # Selection dialog
   LOC=$(for entry in `echo "$PASS1
   $PASS1"| bcrypt -o  /root/Bfile.bfe`; do echo $entry;done |yad --separator=" " --width=500 --height=300 --center --on-top --title="Bfile Control" --class="on-top"  --image="gtk-connect" --text="Select Url location" --list --column="Name" --column="Url" --column="UserId" --column="Password" --hide-column=4 --button=" pastePW :4" --button="gtk-edit:2" --button="gtk-ok:0" --button="gtk-cancel:1") 
      # appears that --on-top does not keep dialog on top --class works ok
   ret=$?
   
    NAME=`echo $LOC | cut -d" " -f1`
    URL=`echo $LOC | cut -d" " -f2`
    USERID=`echo $LOC | cut -d" " -f3`
    PASSW=`echo $LOC | cut -d" " -f4`
    echo "$USERID"| xclip
   
    [[ $ret -eq 0 ]] && defaultbrowser "$URL" &
   
    [[ $ret -eq 1 || $ret -gt 4 ]] && exit 0
   
     [[ $ret -eq 2 ]] && editor
   
     [[ $ret -eq 4 ]] && echo "$PASSW" | xclip

done   
bfile.png
 Description   Bfile -edit panel
 Filesize   17.8 KB
 Viewed   2103 Time(s)

bfile.png

Back to top
View user's profile Send_private_message 
stu90


Joined: 25 Feb 2010
Posts: 1401
Location: England. Dell Inspiron 1501. Dpup

PostPosted: Fri 01 Apr 2011, 07:57    Post_subject:  

Update: Yad-0.10.0
Compiled on Lucid puppy.
yad-0.10.0-i486.pet
Description 
pet

 Download 
Filename  yad-0.10.0-i486.pet 
Filesize  46.86 KB 
Downloaded  444 Time(s) 
Back to top
View user's profile Send_private_message 
seaside

Joined: 11 Apr 2007
Posts: 886

PostPosted: Sun 03 Apr 2011, 20:08    Post_subject:  

I just noticed that Yad 10.0 now requires a minimum gtk+ version of 2.16.0

Does anyone know how to check what version of gtk+ a pup has?

Cheers,
s
Back to top
View user's profile Send_private_message 
stu90


Joined: 25 Feb 2010
Posts: 1401
Location: England. Dell Inspiron 1501. Dpup

PostPosted: Thu 07 Apr 2011, 22:19    Post_subject:  

seaside wrote:
I just noticed that Yad 10.0 now requires a minimum gtk+ version of 2.16.0

Does anyone know how to check what version of gtk+ a pup has?

Cheers,
s


Hey seaside,
not sure how you check to see which gtk+ version puppy has?

Yad sure is developed fast another update.
yad-0.10.1-i486.pet
Description 
pet

 Download 
Filename  yad-0.10.1-i486.pet 
Filesize  37.04 KB 
Downloaded  601 Time(s) 
Back to top
View user's profile Send_private_message 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Fri 08 Apr 2011, 04:05    Post_subject:  

Dear Stu,

run this from a terminal to check you gtk+ version:
Code:
pkg-config --modversion gtk+-2.0


With kind regards,
vovchik

PS. You can also look at: /usr/lib/gtk-2.0. Inside you will find a dir with the version no. as part of the name.
Back to top
View user's profile Send_private_message 
seaside

Joined: 11 Apr 2007
Posts: 886

PostPosted: Fri 08 Apr 2011, 13:00    Post_subject:  

vovchik wrote:
Dear Stu,

run this from a terminal to check you gtk+ version:
Code:
pkg-config --modversion gtk+-2.0


With kind regards,
vovchik

PS. You can also look at: /usr/lib/gtk-2.0. Inside you will find a dir with the version no. as part of the name.


vovchik,

Thanks for posting that information. I checked both pup 431 and lupu510 and they both have 2.10 according to the folder name.

Regards,
s
Back to top
View user's profile Send_private_message 
stu90


Joined: 25 Feb 2010
Posts: 1401
Location: England. Dell Inspiron 1501. Dpup

PostPosted: Fri 08 Apr 2011, 13:33    Post_subject:  

Many thanks vovchik
lucid 525 has version 2.10 also - yad says it requires minimum 2.16.0 but as far as i can tell it still works ?
Back to top
View user's profile Send_private_message 
lithpr


Joined: 10 Mar 2011
Posts: 186

PostPosted: Tue 17 May 2011, 18:48    Post_subject:  

Here's yad-0.11.0, i opened up stu90's pet to make sure i packaged it the way he did. Of course, if you want to do the honors Stu90, i'll gladly delete this.
yad-0.11.0-i486.pet
Description 
pet

 Download 
Filename  yad-0.11.0-i486.pet 
Filesize  38.62 KB 
Downloaded  518 Time(s) 
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 2 of 5 Posts_count   Goto page: Previous 1, 2, 3, 4, 5 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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