2015-07-03, 13:14
I'm trying to make a very simple plugin that opens Firefox and points it to YouTube once the addon is run.
I'll start off by saying I only have a very basic understanding of what I'm doing here and so I need help with something that is happening.
When I open the addon it starts off by opening a menu, and then it opens Firefox.
I launch it from the home screen and if possible I would like for it to stay on the home screen and not try to open any menus.
Originally I added but there is a delay so it still opens a menu before this happens and it's not very clean.
This is my full code:
And here is a video showing what I mean by the menu opening:
https://www.dropbox.com/s/c2s1it46qq3xd51/kodi.mp4?dl=0
(What you can't see in that video if Firefox opening on top of the menu a little while after)
Any help would be much appreciated, thanks.
I'll start off by saying I only have a very basic understanding of what I'm doing here and so I need help with something that is happening.
When I open the addon it starts off by opening a menu, and then it opens Firefox.
I launch it from the home screen and if possible I would like for it to stay on the home screen and not try to open any menus.
Originally I added
Code:
xbmc.executebuiltin("ActivateWindow(home)")
This is my full code:
Code:
import subprocess
import xbmcaddon
def index():
xbmc.Player().stop()
subprocess.Popen('C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe http://www.youtube.com/leanback', shell=False)
index()
And here is a video showing what I mean by the menu opening:
https://www.dropbox.com/s/c2s1it46qq3xd51/kodi.mp4?dl=0
(What you can't see in that video if Firefox opening on top of the menu a little while after)
Any help would be much appreciated, thanks.