[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freenx-knx
Subject:    Re: [FreeNX-kNX] Seamless / rootless session, allowing only certain application to start.
From:       chris () ccburton ! com
Date:       2013-01-23 15:46:07
Message-ID: OFBE7EBE1A.28E6D882-ON80257AFC.0055110A-80257AFC.00569F45 () ccburton ! com
[Download RAW message or body]

This is a multipart message in MIME format.

This is a multipart message in MIME format.
--=_alternative 00569F4180257AFC_=
Content-Type: text/plain; charset="US-ASCII"

freenx-knx-bounces@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 

--=_alternative 00569F4180257AFC_=
Content-Type: text/html; charset="US-ASCII"


<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=&quot;unix-application&quot; &nbsp;I meant
. . . .</font></tt>
<br>
<br>
<br>
<br>
<br><tt><font size=2>&nbsp;<br>
if [ $USER = &quot;im-a-testing-user&quot; ] ; then &nbsp;# you may also
&nbsp;want to <br>
check $type isn't shadow or windows or vnc <br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; force_this_to_run=&quot;/path/to/your/application&quot;
<br>
 <br>
 &nbsp; &nbsp; &nbsp; &nbsp; rootless_param=$(getparam rootless) <br>
 &nbsp; &nbsp; &nbsp; &nbsp; application_param=$(getparam application)
<br>
 <br>
 &nbsp; &nbsp; &nbsp; &nbsp; [ -z &quot;$rootless_param&quot; ] &amp;&amp;
addparam rootless 1 <br>
 &nbsp; &nbsp; &nbsp; &nbsp; [ &nbsp; &nbsp; &quot;$rootless_param&quot;
!= &quot;1&quot; ] &amp;&amp; changeparam rootless 1 <br>
 <br>
 &nbsp; &nbsp; &nbsp; &nbsp; [ -z &quot;$application_param&quot; ] &amp;&amp;
addparam application <br>
 &quot;$force_this_to_run&quot; <br>
 &nbsp; &nbsp; &nbsp; &nbsp; [ &nbsp; &nbsp; &quot;$application_param&quot;
!= &quot;$force_this_to_run&quot; ] &amp;&amp; <br>
 changeparam application &quot;$force_this_to_run&quot; <br>
 <br>
 &nbsp; &nbsp; &nbsp; &nbsp; changeparam type &quot;unix-application&quot;
&nbsp; &nbsp; &nbsp;# just make sure it's not shadow etc <br>
 fi <br>
</font></tt>
--=_alternative 00569F4180257AFC_=--


________________________________________________________________
     Were you helped on this list with your FreeNX problem?
    Then please write up the solution in the FreeNX Wiki/FAQ:

http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ

         Don't forget to check the NX Knowledge Base:
                 http://www.nomachine.com/kb/

________________________________________________________________
       FreeNX-kNX mailing list --- FreeNX-kNX@kde.org
      https://mail.kde.org/mailman/listinfo/freenx-knx
________________________________________________________________

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic