PDA

View Full Version : Annoying minimize bug in Launcher plugin


junk
2008-12-22, 20:52
Hello,

I've been using the Launcher plugin on Windows to - that's right - launch some applications. I've noticed the first launch is always OK; after I close the external application XBMC gets focus again. But any subsequent launches will NOT return to XBMC. It stays minimized and I have to click on it in the task bar.

It's a small bug, but it's very irritating!

I've looked at the source code, and I see this command is used to launch the application:

xbmc.executebuiltin("System.Exec("application.exe")")

or

xbmc.executebuiltin("System.ExecWait("application.exe")")

I tried using

os.system()

and

os.startfile()

instead but without success. I guess there's a reason for why the xbmc.executebuiltin() is used...

But there has to be a way to "reset" XBMC to the state it was before the first launch after subsequent lanches? Any ideas, anyone?

Thanks in advance!

junk
2008-12-27, 23:29
Well, a workaround I "developed" was to use EventGhost, and when the emulators Task.Deactivated is triggered, I have a action "Emulate keypress" (Alt+Tab). That takes me back into XBMC. It's not neat... but it works ;)