Have you tried with "exec" in the bash scripts? I think this might be because the connection comes from a different PID than upstart reported to unity as the launching app.
Have you tried with "exec" in the bash scripts? I think this might be because the connection comes from a different PID than upstart reported to unity as the launching app.