2014-01-08, 06:38
allright; i looked at this again and i think this is what we want:
point chrome launcher at this instead of chrome or chromium's executable, change the chromium-browser to whatever or whereever your chrome / chromium executable is, and it should all drop into place. the $* means every parameter passed to the script on the command line, so pass every command line parameter that the script was passed on to chromium.
add things after the "openbox &" line you need to run before chrome, ( like a remote control mapper) but remember to add a "kill 2%" if you also want that to exit after chrome.
Code:
#!/bin/bash
openbox &
chromium-browser $*
kill 1%
point chrome launcher at this instead of chrome or chromium's executable, change the chromium-browser to whatever or whereever your chrome / chromium executable is, and it should all drop into place. the $* means every parameter passed to the script on the command line, so pass every command line parameter that the script was passed on to chromium.
add things after the "openbox &" line you need to run before chrome, ( like a remote control mapper) but remember to add a "kill 2%" if you also want that to exit after chrome.