I have provided most of these patches. I'm not feeling completely safe here because there is pro and contra, so the more eyes (and xCores) the better.
The patches to ondemand are meant to improve reliability of executing on-demand scripts by shipping app specific parameters / options (as it's intended for GUI apps) to the apps, executed by the on-demand scripts.
The problem now is that, if using the Window Managers On-Demand menus to load a CLI only app, it will not run in the X session (terminal emulator) but will 'hang' on tty, as long as there is no *.desktop file that defines:
Exec=cliorx *app-name*
Also there was an infinite loop when executing on-demand scripts, where the respective extension isn't named after the contained executable (f.e. gimp2.tcz ~ gimp2 != /usr/local/bin/gimp) making ondemand executing "extension-name" (the script) instead of the executable.