[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="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>
--=_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