oh, echo "blah" | sudo -u rene -S /bin/sh -c "export HOME=/home/rene/"
exec($str,$o,$r); $r === 0. so that works. therefore, it must be kate itself that refuses to start up from apache's context. too bad $o === empty array. any ideas are most welcome.