Page 1 of 2

PupTray-0.4

Posted: Sat 30 Oct 2010, 23:25
by mechanic
PupTray is a way to quickly launch your favorite programs. It is written in BaCon which you can find here:

http://www.basic-converter.org/

PupTray uses a config file that you set up to quickly run your favorite programs. Source is included and a readme file to get up and running fast.

This was written in Puppy Lucid 5.01 but should work for most versions of Puppy Linux. No dependencies except GTK+.

Thanks to vovchik for helping me get this up and running!

Have fun!

really useful app

Posted: Sun 31 Oct 2010, 10:56
by vovchik
Dear Puppians,

mechanic has done a really nice job here, and the program is genuinely useful and a breeze to configure. Please try it out.

With kind regards,
vovchik

Posted: Sun 31 Oct 2010, 11:32
by disciple
What makes it more useful than JWM tray buttons? You can't drag and drop programs into it, can you? Does it automatically find icons or something?

Posted: Sun 31 Oct 2010, 11:34
by ttuuxxx
didn't work on 2.14X
sh-3.00# /root/Startup/puptray
./PupTray: /lib/libc.so.6: version `GLIBC_2.7' not found (required by ./PupTray)
Do you have the sources, If I could compile it on 2.14x then it should work. Different glibC
ttuuxxx

Re: PupTray-0.1

Posted: Sun 31 Oct 2010, 11:41
by disciple
mechanic wrote:Source is included and a readme file to get up and running fast.
Will you post a package when you recompile it Ttuuxxx?

for older puppies

Posted: Sun 31 Oct 2010, 12:04
by vovchik
Dear ttuuxxx and disciple,

I think this binary will work in older puppies. I compiled it in 3.01...

With kind regards,
vovchik

PS.
What makes it more useful than JWM tray buttons? You can't drag and drop programs into it, can you? Does it automatically find icons or something?
I use Icewm :)

Re: really useful app

Posted: Sun 31 Oct 2010, 15:39
by mechanic
vovchik wrote:Dear Puppians,

mechanic has done a really nice job here, and the program is genuinely useful and a breeze to configure. Please try it out.

With kind regards,
vovchik
Thanks vovchik, this is my first program for puppy and I thank you for helping with it.
disciple wrote: What makes it more useful than JWM tray buttons? You can't drag and drop programs into it, can you? Does it automatically find icons or something?
Sorry, it doesn't do all of this stuff. It's just a simple application launcher like I used before I moved to linux. I found it very useful so I wanted the same on puppy linux. I thought others might find it useful.
ttuuxxx wrote: Do you have the sources, If I could compile it on 2.14x then it should work. Different glibC
Sorry about that. I included the sources so anyone could try to recompile it on their own machine. I never expected it would work for everybody using the earlier puppy versions. The sources should be in:

/usr/local/PupTray/src/

Posted: Sun 31 Oct 2010, 20:14
by Mobeus
8) I really like it! The only glitch is I'm running 5.1 with icewm and I had to modify the startup script to get it to show in the tray.

Code: Select all

#!/bin/sh
sleep 5
PupTray &
The only way to improve it would be to have icons associated with the menu entries. Possible?

Posted: Mon 01 Nov 2010, 05:48
by ttuuxxx
Here's one I compiled for 2.14X plus I updated the sources to work better with puppy
the default was gedit for the text editor and firefox for the browser
Puppy uses defaultbrowser & defaulttexteditor
now works out of the box :), Had to compile Bash 4.1 to get it working and then installed the bash beacon script and opened mrrxvt and typed bash bacon -j puptray.bac

Below is the pet, plus bash with the bacon script included (only needed for compiling not running Ptray )and a locales pet for bash
Thanks ttuuxxx :)

Posted: Mon 01 Nov 2010, 07:46
by ttuuxxx
For a starter example on 2.14X you could use



Calculator=gcalctool
Word Processor=abiword
Text Editor=defaulttexteditor
Media Player=defaultmediaplayer
Audio Player=defaultaudioplayer
+++


just copy it over the default text and save it\
ttuuxxx

PupTray-0.2

Posted: Mon 01 Nov 2010, 23:56
by mechanic
Mobeus wrote:

The only way to improve it would be to have icons associated with the menu entries. Possible?


Here is version 0.2. I added icons to the menu items and now PupTray attempts to find the icon for the defaultxxx... executable names.

Have fun!

Re: PupTray-0.2

Posted: Tue 02 Nov 2010, 00:13
by mechanic
mechanic wrote:
Here is version 0.2. I added icons to the menu items and now PupTray attempts to find the icon for the defaultxxx... executable names.
Sorry, I forgot to update the binary. If you've downloaded this, please download again. Should be OK now.

Posted: Tue 02 Nov 2010, 06:09
by ttuuxxx
There was an error, line 291
gdk = gdk_pixbuf_new_from_file(icon$, NUL)
should be
gdk = gdk_pixbuf_new_from_file(icon$, NULL) <--- two "L's"
Plus its still using gedit and Firefox when it should be defaulttexteditor and defaultbrowser.
Fixed below
ttuuxxx

PupTray-0.2

Posted: Tue 02 Nov 2010, 10:48
by mechanic
ttuuxxx wrote:There was an error, line 291
gdk = gdk_pixbuf_new_from_file(icon$, NUL)
should be
gdk = gdk_pixbuf_new_from_file(icon$, NULL) <--- two "L's"
Actually no, 'NUL' is correct. BaCon doesn't come with NULL defined, AFAIK (or NUL, for that matter). 'NUL' is defined in the source to be '0'
Plus its still using gedit and Firefox when it should be defaulttexteditor and defaultbrowser.
Fixed below
ttuuxxx
Thanks, I'll change that one. A big thanks for compiling this for earlier versions of puppy too!

Re: PupTray-0.2

Posted: Tue 02 Nov 2010, 11:00
by ttuuxxx
mechanic wrote:
ttuuxxx wrote:There was an error, line 291
gdk = gdk_pixbuf_new_from_file(icon$, NUL)
should be
gdk = gdk_pixbuf_new_from_file(icon$, NULL) <--- two "L's"
Actually no, 'NUL' is correct. BaCon doesn't come with NULL defined, AFAIK (or NUL, for that matter). 'NUL' is defined in the source to be '0'
Yes I knew that butttttt when I went to compile it in its original state. It wouldn't compile, it would get an error, Once I added the second "L", It compiled just fine without error and finally worked perfectly. Below is the default error and once the "L" is added I get no errors.
Ps your welcome for the earlier compile :)

Code: Select all

 sh-3.00# bash bacon -j puptray.bac
Starting conversion... done.
Starting compilation... Compiler emits messages!

Problem:
         file 'puptray.bac.cpp' line 291: gdk = gdk_pixbuf_new_from_file(icon$, NUL)
Cause:
         `NUL' undeclared (first use in this function)

mv: `puptray.bac.cpp' and `./puptray.bac.cpp' are the same file
sh-3.00#

Posted: Tue 02 Nov 2010, 13:05
by Lobster
duplicate

Posted: Tue 02 Nov 2010, 13:08
by Lobster
I am in Luci-234
I get the tray icon
left click nothing
right click (go to website, edit config etc) does nothing

:oops:
did an x restart but no help - maybe when I reboot . . .

Many thanks - well done on baconification

Posted: Tue 02 Nov 2010, 18:54
by ttuuxxx
Lobster wrote:I am in Luci-234
I get the tray icon
left click nothing
right click (go to website, edit config etc) does nothing

:oops:
did an x restart but no help - maybe when I reboot . . .

Many thanks - well done on baconification
That's because the default release is set to gedit and firefox, it you system link gedit to geany and system link firefox to seamonkey located in usr/bin both go to website, edit config should work, or edit /root/.puptray.cfg in geany, The next release I think he's going to change that.
ttuuxxx

PupTray-0.3

Posted: Tue 02 Nov 2010, 22:35
by mechanic
ttuuxxx wrote:
Lobster wrote:I am in Luci-234
I get the tray icon
left click nothing
right click (go to website, edit config etc) does nothing

:oops:
did an x restart but no help - maybe when I reboot . . .

Many thanks - well done on baconification
That's because the default release is set to gedit and firefox, it you system link gedit to geany and system link firefox to seamonkey located in usr/bin both go to website, edit config should work, or edit /root/.puptray.cfg in geany, The next release I think he's going to change that.
ttuuxxx
OK guys, I think I have fixed most, if not all of the bugs. (famous last words?) ;-)

Anyway, I hope this one works OK for you guys. Now to make some programming tools for myself...

Go Puppy!

Re: PupTray-0.3

Posted: Wed 03 Nov 2010, 02:00
by ttuuxxx
mechanic wrote:
ttuuxxx wrote:
Lobster wrote:I am in Luci-234
I get the tray icon
left click nothing
right click (go to website, edit config etc) does nothing

:oops:
did an x restart but no help - maybe when I reboot . . .

Many thanks - well done on baconification
That's because the default release is set to gedit and firefox, it you system link gedit to geany and system link firefox to seamonkey located in usr/bin both go to website, edit config should work, or edit /root/.puptray.cfg in geany, The next release I think he's going to change that.
ttuuxxx
OK guys, I think I have fixed most, if not all of the bugs. (famous last words?) ;-)

Anyway, I hope this one works OK for you guys. Now to make some programming tools for myself...

Go Puppy!
Hi your defaulttexteditor and defaultbrowser now works :) Congrads !!
Buttttttttttt the "NUL" error still happens and won't compile unless I change it "NULL"
I know it doesn't sense but it works if it's changed.

here's the error

Code: Select all

sh-3.00# bash bacon -j puptray.bac
Starting conversion... done.
Starting compilation... Compiler emits messages!

Problem:
         file 'puptray.bac.cpp' line 293: gdk = gdk_pixbuf_new_from_file(icon$, NUL)
Cause:
         `NUL' undeclared (first use in this function)

mv: `puptray.bac.cpp' and `./puptray.bac.cpp' are the same file
sh-3.00#

ttuuxxx