2013-07-08, 12:58
(2013-07-08, 02:25)Angelscry Wrote:(2013-07-08, 00:36)n1md4 Wrote: Angelscry, I have tried so many ways, short of reinstalling, to get openbox permanently booted in the background to handle window management but to no avail.
If you want openbox permanently booted, this must be done at the operating system level (for example into the .xinitrc file) not at the Advanced Launcher level.
I tried this, but I get problems with OB and XBMC fighting for Xorg .. is what it feels like. I tried many variations to this as well, none of them worked.
(2013-07-08, 02:25)Angelscry Wrote: But in my opinion it will be far better to use a .sh to do that :
Code:#!/bin/bash
openbox &
/usr/bin/your_app
killall -9 openbox
I had considered this, but if I'm going to run an OB session every time I launch an external app, it may as well be hard-coded. Also, how are arguments passed using this method?
(2013-07-08, 02:25)Angelscry Wrote: The code need to be modified at 2 differents place (one for standalone launcher and one for files launcher). Just found into the code (launcher_plugin.py) the lines checking the linux operating system :
Code:...
elif (sys.platform.startswith('linux')):
...
Few lines below you may found these lines :
Code:...
os.system("\"%s\" %s " % (launcher["application"], arguments))
...
and
Code:...
os.system("\"%s\" %s " % (application, arguments))
...
Add your code to launch/close openbox before and after these 2 lines.
I've found where to edit, but I don't know enough of Python to edit it. Can you give me an example of opening and closing OB either side of one of these lines?