[LINUX/MAC/WINDOWS] Force single instance of XBMC, run only one copy of the executabe - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Discussions (https://forum.kodi.tv/forumdisplay.php?fid=222) +--- Forum: Feature Requests (https://forum.kodi.tv/forumdisplay.php?fid=9) +--- Thread: [LINUX/MAC/WINDOWS] Force single instance of XBMC, run only one copy of the executabe (/showthread.php?tid=37829) Pages:
1
2
|
[LINUX/MAC/WINDOWS] Force single instance of XBMC, run only one copy of the executabe - -wde- - 2008-09-24 Are there any switches that I can include in the shortcut to make xbmc.exe behave as follows (Vista Premium)? I realize that I could write a vbscript or possibly use this application to achieve the following, but they seem to me inelegant solutions. On execution of xbmc.exe If xbmc.exe is running then switch to xbmc.exe and maximize window and steal focus else start xbmc.exe End If Any ideas? Thanks! - clackerdacker - 2008-09-24 -wde- Wrote:Are there any switches that I can include in the shortcut to make xbmc.exe behave as follows (Vista Premium)? http://forum.xbmc.org/showpost.php?p=211906&postcount=41 - -wde- - 2008-09-25 Thanks clackerdacker. I don't know how I missed that one. I'm already using the part posted by TechLife. Please submit a new feature request on trac if you like this feature... - Gamester17 - 2008-09-25 -wde- Wrote:Are there any switches that I can include in the shortcut to make xbmc.exe behave as follows (Vista Premium)?Please submit a new feature request on trac if you like this feature in XBMC nativly someday: http://trac.xbmc.org - WiSo - 2008-09-27 Done for win32 as I would call it a bug -> r15700 - Gamester17 - 2008-09-28 Does XBMC have the same problem on Linux and Mac OS X? If so then please 'trac' those as well: http://trac.xbmc.org - -wde- - 2008-09-29 WiSo Wrote:Done for win32 as I would call it a bug -> r15700 Thanks for taking care of that. One instance only (win) - SimonZ - 2008-10-05 Hello! Me and many others use Vista, XBMC for win and a remote control. On my remote, I have with IR Server configured so that XBMC is opened with the green button. But if XBMC is opened but not focused, I want it to be focused when I press the green button. Now it opens another instance of XBMC. Regards Simon - -wde- - 2008-10-07 SimonZ Wrote:Hello! That is my exact situation. The post linked above (http://forum.xbmc.org/showpost.php?p...6&postcount=41) will solve that issue. - WiSo - 2008-10-07 -wde- Wrote:That is my exact situation. The post linked above (http://forum.xbmc.org/showpost.php?p...6&postcount=41) That shouldn't be needed for win32. XBMC checks if already an instance is running and if yes brings the focus back. [WINDOWS] Only run once? - needtotest - 2009-06-22 Since this happens to me quite often (starting xbmc twice or more with the remote) it would be nice to have only one xbmc allowed to run. /needtotest - CrashX - 2009-06-22 Easy to do using mutex .. Should apply to all OS .. - WiSo - 2009-06-22 what do you think is this code in XBMC_PC.cpp doing: Code: // check if XBMC is already running Not sure how you got two instances running. - CrashX - 2009-06-22 Wiso:- Sorry I didn't check the code, I was just stating how it can be done. I was able to reproduce this as well yesterday via commandline. I ran it one after the other via commandline. Will investigate again today .. It looks to be timing issue .. - CrashX - 2009-06-23 Confirmed can reproduce this .. It is timing issue .. You must run another instance of xbmc before the first instance of xbmc is initialized. I can see that user might accidently double click it twice. |