2010-06-15, 20:48
I started to do some thinkering on the Launcher today on SVN build 31095. Since this is the first time I have touched the code of a plugin om xbmc it's not much:
- To make Launcher show up in plugins:
- There are two lines of code that make the Launcher die without any feedback. In launcher_plugin.py(772-773):
I believe they should read:
The result? The launcher loads, but every label is gone (I get all the windows, but it doesn't say "command line arguments" etc). It seems I can add one launcher correctly. But then I can't find a way to add another. Also I am not sure that the launcher will even work since I haven't had time testing it.
Hoping someone a bit more experienced can take a look =)
- To make Launcher show up in plugins:
- Put Launcher (folder) in addons
- Create an addon.xml for it (use Ted Talks plugin as an example - the <provides>-tag should contain executable
- There are two lines of code that make the Launcher die without any feedback. In launcher_plugin.py(772-773):
Code:
self.settings[ "thumbs_path" ] = xbmc.translatePath(xbmcplugin.getSetting( "thumbs_path" ))
self.settings[ "search_engine" ] = xbmcplugin.getSetting( "search_engine" )
I believe they should read:
Code:
self.settings[ "thumbs_path" ] = xbmc.translatePath(xbmcplugin.getSetting(int(sys.argv[1]) ,"thumbs_path" ))
self.settings[ "search_engine" ] = xbmcplugin.getSetting(int(sys.argv[1]), "search_engine" )
The result? The launcher loads, but every label is gone (I get all the windows, but it doesn't say "command line arguments" etc). It seems I can add one launcher correctly. But then I can't find a way to add another. Also I am not sure that the launcher will even work since I haven't had time testing it.
Hoping someone a bit more experienced can take a look =)