[FreeNX-kNX] Seamless / rootless session, allowing only certain application to start.

chris at ccburton.com chris at ccburton.com
Wed Jan 23 15:46:07 UTC 2013


freenx-knx-bounces at kde.org wrote on 23/01/2013 14:51:14:

oopsadaisy

--type="unix-application"  I meant . . . .




 
if [ $USER = "im-a-testing-user" ] ; then  # you may also  want to 
check $type isn't shadow or windows or vnc 

         force_this_to_run="/path/to/your/application" 
 
         rootless_param=$(getparam rootless) 
         application_param=$(getparam application) 
 
         [ -z "$rootless_param" ] && addparam rootless 1 
         [     "$rootless_param" != "1" ] && changeparam rootless 1 
 
         [ -z "$application_param" ] && addparam application 
 "$force_this_to_run" 
         [     "$application_param" != "$force_this_to_run" ] && 
 changeparam application "$force_this_to_run" 
 
         changeparam type "unix-application"      # just make sure it's 
not shadow etc 
 fi 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20130123/5ed6e2cf/attachment.html>


More information about the FreeNX-kNX mailing list