2011-03-07, 23:46
I'm trying to modify my boxee app to run on xbmc. The boxee and xbmc coding are very simular, but since the latest xbmc developments are somewhat different in setup.
Boxee uses apps that are build out of skin files, without any help from WindowXML or xbmcgui. So it opens a skin file instead of executing a python file. I did some research to the new xbmc addon system, but it seems it can not execute a plugin by opening its skin file referring to the window id. From what I can see you have to specify a python startupscript.
I made the following script to initiate the start of the application. I have a skin file in the folder: addonofmyapp/resources/skins/Default/720p. The window id to start is 4444. So I tried to append the path and id, but still I got an error it can not find the window id specified. It seems that xbmc is only looking in the current skin folder and not in the addon resources. Does anybody has an idea how to solve it or a reference to a guide or something.
As this addon has its own full skin for the GUI it does not require any other native xbmc skin windows. My goal is to get it working on all skins.
Boxee uses apps that are build out of skin files, without any help from WindowXML or xbmcgui. So it opens a skin file instead of executing a python file. I did some research to the new xbmc addon system, but it seems it can not execute a plugin by opening its skin file referring to the window id. From what I can see you have to specify a python startupscript.
I made the following script to initiate the start of the application. I have a skin file in the folder: addonofmyapp/resources/skins/Default/720p. The window id to start is 4444. So I tried to append the path and id, but still I got an error it can not find the window id specified. It seems that xbmc is only looking in the current skin folder and not in the addon resources. Does anybody has an idea how to solve it or a reference to a guide or something.
As this addon has its own full skin for the GUI it does not require any other native xbmc skin windows. My goal is to get it working on all skins.
Code:
import os
import xbmc
import xbmcgui
SOURCEPATH = os.getcwd()
RESOURCES_PATH = os.path.join( SOURCEPATH , "resources" )
SKIN_PATH = os.path.join( RESOURCES_PATH, "skins", "Default" )
if ( __name__ == "__main__" ):
xbmc.executebuiltin( "ActivateWindow( 4444, '%s')" % (SKIN_PATH) )
#WINDOW = xbmcgui.Window( 4444 )