Code: Select all
RunProgram(page$)and it will open IE, etc and display the page.
How do you do this in Linux?

Code: Select all
RunProgram(page$)Code: Select all
Case #btn_visitWeb
                	CompilerSelect #PB_Compiler_OS
                		CompilerCase #PB_OS_Linux
	                		RunProgram("www-browser", #BEMBURL, "")
	                	CompilerCase #PB_OS_MacOS
	                		RunProgram("www-browser", #BEMBURL, "")
	                	CompilerCase #PB_OS_Windows
	                		RunProgram(#BEMBURL)
	                CompilerEndSelect


Code: Select all
RunProgram("xdg-open", "http://www.noname-development.de", "")Code: Select all
RunProgram("kfmclient", " exec http://www.noname-development.de", "")Code: Select all
RunProgram("gnome-open", "http://www.noname-development.de", "")
Code: Select all
Procedure Internet(page$)
  CompilerIf #PB_Compiler_OS = #PB_OS_Windows
    If RunProgram(page$)=#False
      Warning("Unable to start Internet Explorer.  Please check your system."+Chr(#CR)+Chr(#CR)+"Or contact Cut the Costa!")
    EndIf
  CompilerElse
    browser$=Trim(GetEnvironmentVariable("BROWSER"))  ; apparently this is the new "standard"?
    If browser$=""
      If Trim(GetEnvironmentVariable("KDE_FULL_SESSION"))<>""
        browser$="konqueror"
      Else
        browser$="nautilus"		; assume gnome if not KDE, may need to add more?
      EndIf
    EndIf
    If RunProgram(browser$,page$,"")=#False
      Warning("Unable to start the web browser.  Please check your system."+Chr(#CR)+Chr(#CR)+"Or contact Cut the Costa!")
    EndIf
  CompilerEndIf
EndProcedure


Code: Select all
Procedure Internet(page$)
  message$="Unable to start the web browser."
  CompilerIf #PB_Compiler_OS = #PB_OS_Windows
    If RunProgram(page$)=#False
      Warning(message$)
    EndIf
  CompilerElse
    If RunProgram("xdg-open",page$,"")=#False
      browser$=Trim(GetEnvironmentVariable("BROWSER"))
      If browser$=""
        If RunProgram("gnome-open",page$,"")=#False
          If RunProgram("kfmclient","exec "+page$,"")=#False
            If RunProgram("www-browser",page$,"")=#False
              Warning(message$)
            EndIf
          EndIf
        EndIf
      Else
        If RunProgram(browser$,page$,"")=#False
          Warning(message$)
        EndIf
      EndIf
    EndIf
  CompilerEndIf
EndProcedure