[Windows] XBMC script for Firefox
#1
hello,

I'm trying to get the firefox browser inside my XBMC setup with MQ2 skin.
I've tried to accomplish this with the following script (addon.xml and default.py) I found somewhere on the web.
But somehow I only get it to work with the internet explorer link?

First I've created a folder named script.IEbrowser and put this folder in the XBMC\Addons directory.
Then I placed inside that folder the following files:

addon.xml

Code:
<?xml version="1.0" encoding="UTF-8"?>
<addon
  id="script.IEbrowser"
  version="1.0"
  name="IEbrowser"
  provider-name="Chris12">
  <requires>
    <import addon="xbmc.gui" version="2.11"/>
  </requires>
  <extension
    point="xbmc.python.script"
    library="default.py"
    debugging="false"/>
  <extension point="xbmc.addon.metadata">
    <summary>Script to run Internet Explorer</summary>
    <description>Script to run Internet Explorer from witin XBMC</description>
    <platform>all</platform>
  </extension>
</addon>

and default.py

Code:
import sys
import os
import subprocess
import xbmc

# Script constants
__scriptname__ = "Run Internet Explorer in XBMC"
__author__ = "Chris12"
__url__ = "http://xbmc.org/"
__credits__ = "Chris12"
__version__ = "0.1"

print "[SCRIPT] '%s: version %s' initialized!" % (__scriptname__, __version__, )

if (__name__ == "__main__"):
    child = subprocess.Popen("C:\Program Files\Internet Explorer\iexplore.exe")
    rc = child.wait()

sys.modules.clear()

After a restart of XBMC I can see the script by the programms selection, and create a menu item with the script.

But somehow I can't get it to work with the path to the firefox.exe (explorer, internet explorer are both working)

Is there something I should change in the scripts above?
Reply
#2
When you're trying to diagnose problems with scripts the debug log will usually help you identify the error. Enable debug logging from System settings, Suystem, Debugging and see http://wiki.xbmc.org/index.php?title=Log_File for how to get at the debug log.

If you want us to have a look at the debug log put a copy on http://pastebin.com/. Don't post it here.

JR
Reply

Logout Mark Read Team Forum Stats Members Help
[Windows] XBMC script for Firefox0