[FreeNX-kNX] Running a particular application in freenx server

Peter McGregor freenx at pdadevelopments.co.nz
Thu Oct 29 08:26:08 UTC 2009


Thanks

I've used your code and my application is being called properly now.

cheers

peter

chris at ccburton.com wrote:
>
> Then you need to customize it so that the relevent $USER can only run 
> whatever.
>
> Try
>
>                 if [ "$USER" = "doris-on-windows" ]
>                 then
>                 changeparam type unix-application
>                 changeparam rootless 1
>                 changeparam virtualdesktop 0
>                 changeparam application /usr/bin/ooffice
>                 fi
>
> allow_all
>
>
>
> You may well need to patch changeparam if you want to change a
> type=unix-kde to type=unix-application rootless=1 
> application=/where/ever/whatever.
>
>
> changeparam()
> {
>         if [ "$(echo "$CMDLINE" | tr "&" "\n" | egrep -c "^$1=" )" -lt 
> 1 ]  
>         then
>                 CMDLINE="$CMDLINE""&$1=$2" # Not all parameters are 
> given all the time !!
>         else
>                 CMDLINE=$(echo "$CMDLINE" | tr "&" "\n" | sed 
> "s&^$1=.*&$1=$2&g" | tr "\n" "&")
>         fi
> }
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20091029/e8ae5eae/attachment.html>


More information about the FreeNX-kNX mailing list