Webgadget: Plugins aren't working

Linux specific forum
WishMaster
Enthusiast
Enthusiast
Posts: 277
Joined: Fri Jun 17, 2005 7:13 pm
Location: Franconia
Contact:

Webgadget: Plugins aren't working

Post 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.
Image Image
User avatar
bembulak
Enthusiast
Enthusiast
Posts: 575
Joined: Mon Mar 06, 2006 3:53 pm
Location: Austria

Post 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.
cheers,

bembulak
WishMaster
Enthusiast
Enthusiast
Posts: 277
Joined: Fri Jun 17, 2005 7:13 pm
Location: Franconia
Contact:

Post by WishMaster »

Hum, probably it's a bug - so I'll re-post this right over in the bugs section 8)
Image Image
User avatar
bembulak
Enthusiast
Enthusiast
Posts: 575
Joined: Mon Mar 06, 2006 3:53 pm
Location: Austria

Post by bembulak »

Back to PB?
cheers,

bembulak
WishMaster
Enthusiast
Enthusiast
Posts: 277
Joined: Fri Jun 17, 2005 7:13 pm
Location: Franconia
Contact:

Post 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
Image Image
User avatar
bembulak
Enthusiast
Enthusiast
Posts: 575
Joined: Mon Mar 06, 2006 3:53 pm
Location: Austria

Post by bembulak »

Hope to see you more often again, ol' friend.
cheers,

bembulak
Post Reply