Page 1 of 2

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

Posted: Wed 03 Nov 2010, 21:09
by PjotAwake
Buttttttttttt the "NUL" error still happens and won't compile unless I change it "NULL"
Strange. In the top of the 'puptray.bac' sourcefile you should see the following line:

Code: Select all

GLOBAL NUL TYPE STRING
Can you see it? Can you tell us the version of BaCon you are using to compile?

Furthermore I can see you are using BASH. What BASH version are you using (should be version 4.0 or higher)? Puppy by default comes with the BASH 3.x.

Btw why are you using the '-j' option? There are no preprocessor macros defined in the source...

Regards
Peter

Posted: Wed 03 Nov 2010, 21:15
by ttuuxxx
PjotAwake wrote:
Buttttttttttt the "NUL" error still happens and won't compile unless I change it "NULL"
Strange. In the top of the 'puptray.bac' sourcefile you should see the following line:
Yes I noticed that back in v.1

Code: Select all

GLOBAL NUL TYPE STRING
Can you see it? Can you tell us the version of BaCon you are using to compile?
I'm using the latest BaCon bash version, I downloaded the latest with my first compile.
Furthermore I can see you are using BASH. What BASH version are you using (should be version 4.0 or higher)? Puppy by default comes with the BASH 3.x.
I'm using the latest Bash 4.1
Btw why are you using the '-j' option? There are no preprocessor macros defined in the source... Yes I used everytime the '-j' option

Regards
Peter
ttuuxxx

Posted: Thu 04 Nov 2010, 00:46
by mechanic
PjotAwake wrote:
Strange. In the top of the 'puptray.bac' sourcefile you should see the following line:

Code: Select all

GLOBAL NUL TYPE STRING
Btw why are you using the '-j' option? There are no preprocessor macros defined in the source...
Hello Peter, all of this is my fault. I did define the

Code: Select all

GLOBAL NUL TYPE STRING
*but* never set the value in the source code. Ooops! :-(

So, just set this to 0 in line 292:

Code: Select all

  gdk = gdk_pixbuf_new_from_file(icon$, 0)
I just copied and pasted the command line that I had used for another program so the "-j" option was pasted into the readme.txt file.

So it's all my fault. Sorry, I hope the code works ok now.

PupTray-0.4

Posted: Thu 04 Nov 2010, 01:06
by mechanic
Here is the latest version. I fixed the "NUL" bug and updated the readme.txt with the changes.

Posted: Thu 04 Nov 2010, 01:23
by ttuuxxx
Hi mechanic yes that now works 100% perfectly :) excellent job
ttuuxxx

Puppy 5.2

Posted: Thu 13 Jan 2011, 20:33
by sszindian
Installed puptray-0.4.pet in Puppy 5.2...

It apears to have installed, there is an Icon in the tray and when I left-click on it nothing happens, when I right click I get

(an Icon) Beaco Website
(an Icon) Edit Configuration
(an Icon) Help
(an Icon) Quit

When I left-click on 'Edit Configuration I Get this window that says-

BaCon Website=defaultbrowser "http://www.basic-converter.org/"
+++
Edit Configuration=defaulttexteditor "/root/.puptray.cfg"

What do I do from here to get menu items so I can put a few in the tray??? Or... doesn't this prog work with 5.2 ???

Re: Puppy 5.2

Posted: Thu 13 Jan 2011, 22:41
by mechanic
sszindian wrote:Installed puptray-0.4.pet in Puppy 5.2...

It apears to have installed, there is an Icon in the tray and when I left-click on it nothing happens, when I right click I get

(an Icon) Beaco Website
(an Icon) Edit Configuration
(an Icon) Help
(an Icon) Quit

When I left-click on 'Edit Configuration I Get this window that says-

BaCon Website=defaultbrowser "http://www.basic-converter.org/"
+++
Edit Configuration=defaulttexteditor "/root/.puptray.cfg"

What do I do from here to get menu items so I can put a few in the tray??? Or... doesn't this prog work with 5.2 ???
Seems to be working fine. Right click, choose "Edit Configuration" and the configuration file should come up in your default editor.

Now edit this file to set your programs that you want to start with puptray. For instance, this is my configuration file:

<start>

Scite=SciTE
+++
GLADE=glade-3
DevHelp=devhelp
+++
GObject Help=firefox "file:///mnt/sdb4/gtk-doc/html/gobject/index.html"
+++
BcxGurus=firefox "http://www.bcxgurus.com/bcxusers/"
BaCon Website=firefox "http://www.basic-converter.org/"
BaCon Forum=firefox "http://basic-converter.proboards.com/"
+++
Edit Configuration=gedit "/root/.puptray.cfg"
PWRD=gedit "/mnt/sdb3/psword.txt"

<end>

Note this line:

Scite = SciTE
(name in menu) = (command to run)

Put "+++" in the file anywhere you want a seperator.

HTH

Puppy Tray

Posted: Fri 14 Jan 2011, 01:35
by sszindian
Thanks mechanic!!!!

I figured it might be something like you describe but I didn't know for sure... we'll give it a shot.

Re: PupTray-0.4

Posted: Sat 15 Jan 2011, 03:04
by bigpup
mechanic wrote:Here is the latest version. I fixed the "NUL" bug and updated the readme.txt with the changes.
To help people find the latest version you should go to the first entry in this post and update the download link. Change title of post to PupTray-0.4 would also help.
Thanks for thr PuppTray.