<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks <br>
<br>
I've used your code and my application is being called properly now.<br>
<br>
cheers<br>
<br>
peter<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:chris@ccburton.com">chris@ccburton.com</a> wrote:
<blockquote
cite="mid:OF746AEB2A.A45B0103-ON8025765D.00365289-8025765D.004ACDEC@ccburton.com"
type="cite"><br>
<tt><font size="2">Then you need to customize it so that the relevent
$USER can only run whatever.</font></tt>
<br>
<br>
<tt><font size="2">Try</font></tt>
<br>
<br>
<tt><font size="2">
if [ "$USER" = "doris-on-windows"
]</font></tt>
<br>
<tt><font size="2">
then</font></tt>
<br>
<tt><font size="2">
changeparam type unix-application</font></tt>
<br>
<tt><font size="2">
changeparam rootless 1</font></tt>
<br>
<tt><font size="2">
changeparam virtualdesktop 0</font></tt>
<br>
<tt><font size="2">
changeparam application /usr/bin/ooffice</font></tt>
<br>
<tt><font size="2">
fi</font></tt>
<br>
<br>
<tt><font size="2">allow_all</font></tt>
<br>
<br>
<br>
<br>
<tt><font size="2">You may well need to patch changeparam if you want
to change a </font></tt>
<br>
<tt><font size="2">type=unix-kde to type=unix-application rootless=1
application=/where/ever/whatever.</font></tt>
<br>
<br>
<br>
<tt><font size="2">changeparam()</font></tt>
<br>
<tt><font size="2">{</font></tt>
<br>
<tt><font size="2"> if [ "$(echo "$CMDLINE"
| tr "&" "\n" | egrep -c "^$1=" )"
-lt 1 ] </font></tt>
<br>
<tt><font size="2"> then</font></tt>
<br>
<tt><font size="2">
CMDLINE="$CMDLINE""&$1=$2" # Not all parameters
are given all the time !!</font></tt>
<br>
<tt><font size="2"> else</font></tt>
<br>
<tt><font size="2">
CMDLINE=$(echo "$CMDLINE" | tr "&" "\n"
| sed "s&^$1=.*&$1=$2&g" | tr "\n" "&")</font></tt>
<br>
<tt><font size="2"> fi</font></tt>
<br>
<tt><font size="2">}</font></tt>
<br>
<br>
<br>
<tt><font size="2"></font></tt></blockquote>
<br>
</body>
</html>