<br><tt><font size=2>freenx-knx-bounces@kde.org wrote on 23/01/2013 14:51:14:<br>
</font></tt>
<br><tt><font size=2>oopsadaisy</font></tt>
<br>
<br><tt><font size=2>--type="unix-application" I meant
. . . .</font></tt>
<br>
<br>
<br>
<br>
<br><tt><font size=2> <br>
if [ $USER = "im-a-testing-user" ] ; then # you may also
want to <br>
check $type isn't shadow or windows or vnc <br>
<br>
force_this_to_run="/path/to/your/application"
<br>
<br>
rootless_param=$(getparam rootless) <br>
application_param=$(getparam application)
<br>
<br>
[ -z "$rootless_param" ] &&
addparam rootless 1 <br>
[ "$rootless_param"
!= "1" ] && changeparam rootless 1 <br>
<br>
[ -z "$application_param" ] &&
addparam application <br>
"$force_this_to_run" <br>
[ "$application_param"
!= "$force_this_to_run" ] && <br>
changeparam application "$force_this_to_run" <br>
<br>
changeparam type "unix-application"
# just make sure it's not shadow etc <br>
fi <br>
</font></tt>