2009-10-30, 17:07
Hi! Just wanted to share my solution to the fullscreen problem on Windows machines. If you have the problem that XBMC cannot minimize when in fullscreen and therefore you cannot use the launched application because xbmc is covering the screen, please follow these instructions:
Open launcher_plugin.py in
C:\Users\{your username}\AppData\Roaming\XBMC\plugins\Programs\Launcher\resources\lib
with a text editor and locate the function def _run_launcher(self, launcherName)
there you will see the line
paste the following code before and after this line
so it will look like
This will switch XBMC to windowed mode before launching an application and switch back to fullscreen after the application is closed.
Open launcher_plugin.py in
C:\Users\{your username}\AppData\Roaming\XBMC\plugins\Programs\Launcher\resources\lib
with a text editor and locate the function def _run_launcher(self, launcherName)
there you will see the line
Code:
xbmc.executebuiltin("%s(\"%s\" %s2\")" % (cmd, launcher["application"], launcher["args"]))
Code:
xbmc.executehttpapi("Action(199)")
so it will look like
Code:
...
if (sys.platform == 'win32'):
if (launcher["wait"] == "true"):
cmd = "System.ExecWait"
else:
cmd = "System.Exec"
xbmc.executehttpapi("Action(199)")
xbmc.executebuiltin("%s(\"%s\" %s2\")" % (cmd, launcher["application"], launcher["args"]))
xbmc.executehttpapi("Action(199)")
elif (sys.platform.startswith('linux')):
...
This will switch XBMC to windowed mode before launching an application and switch back to fullscreen after the application is closed.