Kodi Community Forum
Launching applications when XBMC is the session/window manager - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: Launching applications when XBMC is the session/window manager (/showthread.php?tid=150579)



Launching applications when XBMC is the session/window manager - TenLeftFingers - 2013-01-03

I've just set up the Advanced Launcher to launch some native and emulated (zsnes) games.

I'm running Ubuntu and after setting up I changed the window manager for the XBMC linux user back to XBMC - which speeds up login time and guarantees XBMC stays fullscreen.

The problem is that when I launch the games now, I just get a black screen. Am I trying to do the impossible? The XBMC session manager is more important to me than the games so I could just delete the Programs entry from the main menu.

Thanks in advance,
Ten


RE: Launching applications when XBMC is the session/window manager - Angelscry - 2013-01-03

Problem is that into the XBMC stand alone mode, desktop/windows manager is not started. Without any desktop/windows manager the system cannot control the windows state (windowed/fullscreen, position, focus) of your started applications (like ZSNES). XBMC stand alone mode is great if your want to use XBMC and nothing else. Once you want to start external applications, it is better to use a desktop/windows manager in addition of XBMC.


RE: Launching applications when XBMC is the session/window manager - snipah - 2013-01-04

Have you tried running ZSNES in a windowed video-mode? This works for me. When starting in a fullscreen-mode I also get a black screen! I'm using the latest XBMCbuntu with Frodo RC2.


RE: Launching applications when XBMC is the session/window manager - Angelscry - 2013-01-04

Also which version of Advanced Launcher are you using? The last one?


RE: Launching applications when XBMC is the session/window manager - snipah - 2013-01-04

@Angelscry: Found your repo today, too! Had installed the old version from the official repo yesterday, which is old as hell! Gonna try your newest version tonight. Hope the 1000ms-delay fixes this issue and everything will be up and running in fullscreen-mode,too.Couldn't really find the root-cause for the crashes yesterday.

btw: thanks for your great work!


RE: Launching applications when XBMC is the session/window manager - TenLeftFingers - 2013-01-04

@Angelscry: Thanks. I thought that might be the case but Supertux 2 ran fine fullscreen on top of XBMC. Turns out that I can't rely on that behaviour as it just failed on my most recent attempt. I'm using 1.7.6 of Advanced Launcher.

@snipah: Does zsnes have a windowed mode? I'm just looking at the man-pages and all I find close to something like that is:
-m Disable GUI (Must specify ROM filename)




RE: Launching applications when XBMC is the session/window manager - Angelscry - 2013-01-04

(2013-01-04, 18:41)TenLeftFingers Wrote: @Angelscry: Thanks. I thought that might be the case but Supertux 2 ran fine fullscreen on top of XBMC. Turns out that I can't rely on that behaviour as it just failed on my most recent attempt. I'm using 1.7.6 of Advanced Launcher.

@snipah: Does zsnes have a windowed mode? I'm just looking at the man-pages and all I find close to something like that is:
-m Disable GUI (Must specify ROM filename)
Use last version 1.10.11 of Advanced Launcher please. Version 1.7.6 is nearly 1 year old. More than 30 versions of Advanced Launcher have been released sinnce this one.

Yes ZSNES have a windows mode depending the value indicated by the -v parameter :

Code:
; Video Mode [0..42]
;   0 = 256x224      R WIN     1 = 256x224        R FULL
;   2 = 512x448      R WIN     3 = 512x448       DR WIN
;   4 = 640x480      S WIN     5 = 640x480       DS WIN
;   6 = 640x480     DR FULL    7 = 640x480       DS FULL
;   8 = 640x480      S FULL    9 = 768x672        R WIN
;  10 = 768x672     DR WIN    11 = 800x600        S WIN
;  12 = 800x600     DS WIN    13 = 800x600        S FULL
;  14 = 800x600     DR FULL   15 = 800x600       DS FULL
;  16 = 1024x768     S WIN    17 = 1024x768      DS WIN
;  18 = 1024x768     S FULL   19 = 1024x768      DR FULL
;  20 = 1024x768    DS FULL   21 = 1024x896       R WIN
;  22 = 1024x896    DR WIN    23 = 1280x960       S WIN
;  24 = 1280x960    DS WIN    25 = 1280x960       S FULL
;  26 = 1280x960    DR FULL   27 = 1280x960      DS FULL
;  28 = 1280x1024    S WIN    29 = 1280x1024     DS WIN
;  30 = 1280x1024    S FULL   31 = 1280x1024     DR FULL
;  32 = 1280x1024   DS FULL   33 = 1600x1200      S WIN
;  34 = 1600x1200   DS WIN    35 = 1600x1200     DR FULL
;  36 = 1600x1200   DS FULL   37 = 1600x1200      S FULL
;  38 = CUSTOM      D  WIN    39 = CUSTOM        DS FULL
;  40 = CUSTOM         WIN    41 = CUSTOM         S FULL
;  42 = CUSTOM      DR FULL




RE: Launching applications when XBMC is the session/window manager - snipah - 2013-01-04

Version 1.10.11 didn't fix my black-screen-problem in full screen mode...still crashes. Windowed video-modes work flawlessly!
Gonna keep on trying. I'm pretty sure, the problem is the missing window manager. Other ideas, Angelscry?

My version of ZSNES only has 22 Video-modes. It's the version from the official debian/ubuntu-version 1.51. Using XBMCbuntu Frodo RC2 (latest version).

Code:
; Video Mode [0..22]
;   0 = 256x224      R WIN     1 = 256x224      R FULL
;   2 = 512x448     DR WIN     3 = 512x448     DR FULL
;   4 = 640x480     DR FULL
;   5 = 256x224    O R WIN     6 = 512x448    ODR WIN
;   7 = 640x480    ODS FULL    8 = 640x480    ODS WIN
;   9 = 640x560    ODR WIN    10 = 768x672    ODR WIN
;  11 = 800x600    ODS FULL   12 = 800x600    ODS WIN
;  13 = 896x784    ODR WIN    14 = 1024x768   ODS FULL
;  15 = 1024x768   ODS WIN    16 = 1024x896   ODR WIN
;  17 = 1280x960   ODS FULL   18 = 1280x1024  ODS FULL
;  19 = 1600x1200  ODS FULL   20 = VARIABLE   ODR WIN
;  21 = VARIABLE   ODS WIN    22 = CUSTOM     OD  FULL



RE: Launching applications when XBMC is the session/window manager - snipah - 2013-01-05

I had to simply put XBMC into windowed mode by configuring your plugin. Now everything works... also in fullscreen!

Great job!


This forum uses Lukasz Tkacz MyBB addons.