Page 1 of 1

Webgadget: Plugins aren't working

Posted: Wed Oct 31, 2007 2:38 am
by WishMaster
Here in OpenSUSE 10.3, browser plugins are stored in /usr/lib/browser-plugins - and both Firefox and Konqueror use them.
But PB's WebGadget obviously can't:

Code: Select all

Procedure.s GetLibFile(libFile.s) 
   Compiler = RunProgram("find", libFile, "", #PB_Program_Open|#PB_Program_Read) 
   If Compiler  
     While ProgramRunning(Compiler) 
       tmp$ = ReadProgramString(Compiler) 
       If tmp$ <> "" 
         output$ = tmp$ 
       EndIf 
     Wend 
   EndIf 
   ProcedureReturn Trim(output$) 
 EndProcedure 

If WebGadgetPath(GetLibFile("/usr/lib -name libgtkembedmoz.so"), GetPathPart(GetLibFile("/usr/lib -name firefox.sh"))) 
  OpenWindow(1, 0, 0, 600, 550, "")
  CreateGadgetList(WindowID(1))
  WebGadget(1, 0, 0, 600, 500, "http://www.gogle.com")
  ButtonGadget(2, 10, 510, 230, 30, "Check Flash")
  ButtonGadget(3, 360, 510, 230, 30, "Check Java")
  Repeat
    WindowEvent = WaitWindowEvent()
    If WindowEvent = #PB_Event_Gadget
      If EventGadget() = 2
        SetGadgetText(1, "http://www.adobe.com/shockwave/welcome/")
      ElseIf EventGadget() = 3
        SetGadgetText(1, "http://www.java.com/en/download/installed.jsp")
      EndIf
    EndIf
  Until WindowEvent = #PB_Event_CloseWindow
Else
  MessageRequester("ERROR", "Couldn't find XUL-Runner")
EndIf
Do you know of a way to use the plugins anyway?
I manually made a copy of my firefox directory and added the plugins - also manually - to the "plugins" folder and used this as "MozillaPath$". But I doubt that's a good solution.

Posted: Wed Oct 31, 2007 8:37 am
by bembulak
Hm, we've had this topic. I can't find it yet in the forum.
I can't remember the solution now, but I know, it works.

I'll come back, as soon as I have it.

EDIT: Sorry!
You're talking about the plugins, not the webgadget itself. @|
My mistake.

Posted: Wed Oct 31, 2007 8:57 pm
by WishMaster
Hum, probably it's a bug - so I'll re-post this right over in the bugs section 8)

Posted: Wed Oct 31, 2007 10:23 pm
by bembulak
Back to PB?

Posted: Sat Nov 03, 2007 9:49 pm
by WishMaster
Well, partially. ATM I'm working on a project developed with PB and PHP. I'll probably soon anounce it in the German forums (it's German-only, ATM. Other languages are still tbd). :D

Posted: Sun Nov 04, 2007 8:56 pm
by bembulak
Hope to see you more often again, ol' friend.