Hi,
I'm looking for a way to let XBMC reappear on the same (secondary) screen as it was before I launched a program (such as
Kylo).
Now it reappears on the screen where XBMC is located in windows mode. It does reappear in fullscreen (or in my case fullscreen windows) on my second screen/TV (if I drag XBMC in window mode to that screen) but in the settings it shows as fullscreen on monitor #1. This means that if I don't change it back before I restart XBMC, XBMC will launch on the wrong screen.
I hope someone has an solution because this isn't very practical.
Grtz
Maarten Bolhuis
Edit (2010-12-29)
I Found the solution myself.
When I read
this post I managed to make sure XBMC reopened at the same screen. I solved the problem by making sure that XBMC wasn't
minimized. ( I meant that XBMC doesn't go to window mode before it gets minimized so it will reappear on the same screen (when using multiple monitors)
For anyone who is interested her is my solution:
1. Open launcher_plugin.py (located at the addons section of your XBMC folder in Application Data (App Data).
2. Remove:
Code:
xbmc.executehttpapi("Action(199)")
from this part of the code:
Code:
#this minimizes xbmc some apps seems to need it
xbmc.executehttpapi("Action(199)")
xbmc.executebuiltin("%s(\\\"%s\\\" \\\"%s\\\")" % (cmd, launcher["application"], launcher["args"]))
#this brings xbmc back
xbmc.executehttpapi("Action(199)")
elif (sys.platform.startswith('linux')):
#this minimizes xbmc some apps seems to need it
xbmc.executehttpapi("Action(199)")
os.system("%s %s" % (launcher["application"], launcher["args"]))
#this brings xbmc back
xbmc.executehttpapi("Action(199)")
elif (sys.platform.startswith('darwin')):
#this minimizes xbmc some apps seems to need it
xbmc.executehttpapi("Action(199)")
os.system("\"%s\" %s" % (launcher["application"], launcher["args"]))
#this brings xbmc back
xbmc.executehttpapi("Action(199)")
I removed all 4 lines. I don't know why there are for and if you need to remove all 4. I did it anyway and it worked.
Note: according to this post and the notes in launcher_plugin.py some applications need XBMC to be minimized or they won't work