<br><font size=2 face="Trebuchet MS">Well,</font>
<br>
<br><font size=2 face="Trebuchet MS">&nbsp; &nbsp; I'm not sure about you want but you can do something like this in order to start shell scripts or acroread (for linux), for example:</font>
<br>
<br><font size=2 face="Trebuchet MS">a) put the keys below at the &quot;~/.wine/system.reg&quot;:</font>
<br><font size=2 face="Trebuchet MS">----------------- 8&lt; --------------------</font>
<br><font size=2 face="Trebuchet MS">[Software\\Classes\\.pdf] 1051470000</font>
<br><font size=2 face="Trebuchet MS">@=&quot;acroread.pdf&quot;</font>
<br><font size=2 face="Trebuchet MS">&nbsp; &nbsp; </font>
<br><font size=2 face="Trebuchet MS">[Software\\Classes\\acroread.pdf\\shell\\open\\command] 1051470000</font>
<br><font size=2 face="Trebuchet MS">@=&quot;\&quot;C:\\Program Files\\Acroread\\acroread.exe\&quot; \&quot;%1\&quot;&quot;</font>
<br><font size=2 face="Trebuchet MS">------------------ 8&lt; -------------------</font>
<br>
<br>
<br><font size=2 face="Trebuchet MS">b) in the fake windows directory, pointed by &quot;~/.wine/dosdevices/c:&quot;, put the &quot;acroread.exe&quot; at the &quot;Program Files/Acroread&quot;, as described in the key-registry above. If necessary, create the &quot;Program Files/Acroread&quot; directory.</font>
<br><font size=2 face="Trebuchet MS">------------------ 8&lt; -------------------</font>
<br><font size=2 face="Trebuchet MS">#!/bin/sh</font>
<br>
<br><font size=2 face="Trebuchet MS">#set -x</font>
<br><font size=2 face="Trebuchet MS">mkdir -p &quot;$HOME/tmp&quot;</font>
<br><font size=2 face="Trebuchet MS">LOG=&quot;$HOME/tmp/acroread.exe-log.`id -u -n`&quot;</font>
<br><font size=2 face="Trebuchet MS">echo &quot;Arguments received: $@&quot; &gt; $LOG</font>
<br>
<br><font size=2 face="Trebuchet MS">#</font>
<br><font size=2 face="Trebuchet MS"># winepath replaces &quot;X:\path\to\application&quot; to the Unix format</font>
<br><font size=2 face="Trebuchet MS">#</font>
<br><font size=2 face="Trebuchet MS">RESULT=`winepath &quot;$@&quot; 2&gt;&gt; $LOG`</font>
<br><font size=2 face="Trebuchet MS">echo &quot;/usr/local/bin/acroread $RESULTADO&quot; &gt;&gt; $LOG</font>
<br><font size=2 face="Trebuchet MS">TMP=$TMPDIR ; TEMP=$TMPDIR ; /usr/local/bin/acroread &quot;$RESULT&quot;</font>
<br>
<br><font size=2 face="Trebuchet MS">rm -f &quot;$RESULT&quot;</font>
<br><font size=2 face="Trebuchet MS">------------------ 8&lt; -------------------</font>
<br>
<br><font size=2 face="Trebuchet MS">&nbsp; &nbsp; &nbsp;The same logic works for all extensions you can imagine (doc, xls, sxw, ppt, zip, htm, html, ...)</font>
<br><font size=2 face="Trebuchet MS">&nbsp; &nbsp; &nbsp;I mean, you can put a registry entry (at system.reg) for the extension you need and a &quot;executable&quot; (in fact, a shell script) to start that extension. </font>
<br><font size=2 face="Trebuchet MS">&nbsp; &nbsp; &nbsp;I've done some scripts to deal with some extensions. All you have to do is to look the way the linux application works passing the proper arguments to them. For instance, &quot;ark&quot; forks itself so the script to deal with ZIP extension (very similar to the one above) was deleting the file before ark could read it. I had to pass &quot;ark --nofork&quot; in order the script to work.</font>
<br><font size=2 face="Trebuchet MS">&nbsp; &nbsp; &nbsp;You can improve the scripts in order to find the application you want to start instead of acroread (xpdf, gpdf, kghostview, etc).</font>
<br>
<br><font size=2 face="Trebuchet MS">Regards.</font>
<br><font size=2 face="Trebuchet MS">---------------------------------------------------------<br>
Ulisses de Sousa Penna<br>
Analista Consultor - Banco do Brasil<br>
Fone: +55-61-310-6320 &nbsp; Fax: +55-61-310-6435<br>
---------------------------------------------------------</font>