PupTray-0.4

Window managers, icon programs, widgets, etc.
Message
Author
mechanic
Posts: 29
Joined: Sun 12 Apr 2009, 20:20

PupTray-0.4

#1 Post 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!
Attachments
puptray-0.4.pet
This is the latest version. Enjoy!
(55.55 KiB) Downloaded 961 times
puptray.jpg
(33.03 KiB) Downloaded 2488 times
Last edited by mechanic on Sun 16 Jan 2011, 12:56, edited 1 time in total.
regards,
mechanic

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

really useful app

#2 Post 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

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#3 Post 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?
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#4 Post 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
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

Re: PupTray-0.1

#5 Post 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?
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

for older puppies

#6 Post 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 :)
Attachments
puptray.tar.gz
(13.63 KiB) Downloaded 832 times

mechanic
Posts: 29
Joined: Sun 12 Apr 2009, 20:20

Re: really useful app

#7 Post 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/
regards,
mechanic

User avatar
Mobeus
Posts: 94
Joined: Thu 26 Aug 2010, 15:49

#8 Post 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?
/root for the home team

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#9 Post 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 :)
Attachments
PupTray-0.1.jpg
(9.5 KiB) Downloaded 2310 times
puptray-0.1a.pet
(48.82 KiB) Downloaded 863 times
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#10 Post 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
Attachments
PupTray-0.1.jpg
(16.02 KiB) Downloaded 2363 times
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

mechanic
Posts: 29
Joined: Sun 12 Apr 2009, 20:20

PupTray-0.2

#11 Post 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!
Attachments
puptray-0.2.pet
(55.52 KiB) Downloaded 845 times
PupTray.jpg
(34.78 KiB) Downloaded 2069 times
regards,
mechanic

mechanic
Posts: 29
Joined: Sun 12 Apr 2009, 20:20

Re: PupTray-0.2

#12 Post 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.
regards,
mechanic

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#13 Post 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
Attachments
puptray-0.2a.pet
(70.9 KiB) Downloaded 845 times
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

mechanic
Posts: 29
Joined: Sun 12 Apr 2009, 20:20

PupTray-0.2

#14 Post 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!
regards,
mechanic

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

Re: PupTray-0.2

#15 Post 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#
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#16 Post by Lobster »

duplicate
Last edited by Lobster on Tue 02 Nov 2010, 13:09, edited 1 time in total.

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#17 Post 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
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#18 Post 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
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

mechanic
Posts: 29
Joined: Sun 12 Apr 2009, 20:20

PupTray-0.3

#19 Post 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!
Attachments
puptray-0.3.pet
(55.51 KiB) Downloaded 690 times
regards,
mechanic

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

Re: PupTray-0.3

#20 Post 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
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

Post Reply