You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Wednesday, April 30th 2003, 8:52am

Karamba theme - bofhbar

Has anyone tried BOFH bar, http://www.kde-look.org/content/show.php?content=5892? Anyway, since I got another theme for most of the features in bofhbar I think the excuses are cool. So I wrote a little theme, which is supposed to display only the excuses, but can't get to work. The bofh bara themes works, except the excuses?? The bofhbar.pl works fine (that randomly chooses an excuse from a file) when executed from the shell, but nothing is displayed in my theme which looks like:

[code:1]KARAMBA X=500 Y=500 H=250 W=600 H=50 LOCKED=FALSE

TEXT X=0 Y=0 VALUE="Excuses:"
TEXT X=5 Y=5 SENSOR=PROGRAM PROGRAM="bofhserver.pl" LINE=1 INTERVAL=300000[/code:1]

Don't think about H and W or the TEXT "Excuses", I only use it to see where the theme is on my desktop!

This is a very simple theme and I've done similar themes, that uses *.pl scripts successfully. Any ideas why this does not work??
Beware of computer programmers that carry screwdrivers.

2

Wednesday, April 30th 2003, 5:00pm

Hi there:

Where you have:

[code:1]TEXT X=5 Y=5 SENSOR=PROGRAM PROGRAM="bofhserver.pl" LINE=1 INTERVAL=300000[/code:1]

change it to:

[code:1]TEXT X=5 Y=5 SENSOR=PROGRAM PROGRAM="perl /[full path name]/bofhserver.pl" LINE=1 INTERVAL=300000[/code:1]

Its probably looking for the script in a directory that it isn't in.


This is just a suggestion of course, but I think it'll do the trick.

seb

Professional

Posts: 622

Location: Sydney

Occupation: Student

  • Send private message

3

Thursday, May 1st 2003, 1:51am

those things work for me without needing to pur in `perl'

4

Thursday, May 1st 2003, 8:38am

Nope, the absolute path doesn't work either. I'm starting to suspect that this is some silly overlook from my behafl....I'm missing something obvious here. The strange thing is that I'm running another theme that uses the output from a Perl script which works fine. (I've tried to shut it down before running bofh bar).

Anyways, I will give it another try in a few hours :?
Beware of computer programmers that carry screwdrivers.

5

Thursday, May 1st 2003, 9:05am

It might be that you are missing certain perl modules that the perl script requires. What you might try is running the perl module by hand from a console. That should show you what goes wrong. When I installed some weather scripts for karamba, I never got output either. Turned out I was missing something like 5 or so modules.... :roll:

6

Friday, May 2nd 2003, 9:18pm

The script works perfectly when executed from the console. It is a good tip to try to update/get some Perl modules....I will try that before tearing all my hair off and jump out the window.
Beware of computer programmers that carry screwdrivers.

7

Saturday, May 3rd 2003, 10:32am

Quoted

Original von RobbiK

The script works perfectly when executed from the console. It is a good tip to try to update/get some Perl modules....I will try that before tearing all my hair off and jump out the window.


Ehrmmm.. Blonde moment here: did you fix it now, or did it work already?

8

Tuesday, May 6th 2003, 3:10pm

Quoted

Original von Shoikan

Ehrmmm.. Blonde moment here: did you fix it now, or did it work already?


Well, blonde moments here too....I just needed to upgrade to karamba version 0.17...now everything works fine!!!
Beware of computer programmers that carry screwdrivers.