<br><font size=2 face="Courier New">Hi Shadi,</font>
<br>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; I'm also using notes 5.0.12 and I've posted at May,05-2005 a message just talking about how to start Linux apps from a Windows app over/under Wine. The only problem is that I'm not using wine-20050524 ... 8-(. Instead I'm using 20040813.</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; Follows the message. Feel free to ask me more questions and if you want I can send to you another types of scripts.</font>
<br>
<br><font size=2 face="Courier New">Regards. Ulisses Penna</font>
<br>
<br><font size=2 face="Courier New">====================================</font>
<br><font size=2 face="Trebuchet MS">Hi Rainer,</font>
<br><font size=2 face="Courier New"><br>
&gt; i have running lotus notes under wine on my redhat 9 system.</font>
<br>
<br><font size=2 face="Courier New">So am I, since year 2001 &nbsp;;)</font>
<br><font size=2 face="Courier New"><br>
&gt; what i want is, to define which application should be started for<br>
&gt; which attachment type. so for microsoft attachments i want to start<br>
&gt; my linux version of open office and for pdf files i want also to start<br>
&gt; my linux version of acrobat reader or xpdf!<br>
&gt; <br>
&gt; so, where do i have to configure this stuff?<br>
&gt; <br>
</font>
<br><font size=2 face="Courier New">OK, It's possible and works very fine when you right-click at the document. See below.</font>
<br><font size=2 face="Courier New">&nbsp;<br>
I did the following 2 steps:</font>
<br>
<br><font size=2 face="Courier New">1) put an entry at the ~/.wine/system.reg like this (example):</font>
<br><font size=2 face="Courier New">------------------------ 8&lt; --------------------------------</font>
<br><font size=2 face="Courier New">[Software\\Classes\\.pdf] 1051470000</font>
<br><font size=2 face="Courier New">@=&quot;acroread.pdf&quot;</font>
<br>
<br><font size=2 face="Courier New">[Software\\Classes\\acroread.pdf] 1051470000</font>
<br><font size=2 face="Courier New">@=&quot;Documento Adobe PDF&quot;</font>
<br>
<br><font size=2 face="Courier New">[Software\\Classes\\acroread.pdf\\DefaultIcon] 1051470000</font>
<br><font size=2 face="Courier New">@=&quot;C:\\Program Files\\Acroread\\acroread.exe,1&quot;</font>
<br>
<br><font size=2 face="Courier New">[Software\\Classes\\acroread.pdf\\shell] 1051470000</font>
<br><font size=2 face="Courier New">@=&quot;open&quot;</font>
<br>
<br><font size=2 face="Courier New">[Software\\Classes\\acroread.pdf\\shell\\open\\command] 1051470000</font>
<br><font size=2 face="Courier New">@=&quot;\&quot;C:\\Program Files\\Acroread\\acroread.exe\&quot; \&quot;%1\&quot;&quot;</font>
<br><font size=2 face="Courier New">---------------------- 8&lt; ---------------------------------</font>
<br>
<br><font size=2 face="Courier New">2) the linux &quot;executable&quot; acroread.exe *must* be placed at the above dir: &quot;C:\Program Files\Acroread&quot;. The linux &quot;executable&quot; is a shell script so you can do anything you like from now on ;). Follows an example:</font>
<br><font size=2 face="Courier New">---------------------- 8&lt; ---------------------------------</font>
<br><font size=2 face="Courier New">#!/bin/sh</font>
<br>
<br><font size=2 face="Courier New">#set -x</font>
<br><font size=2 face="Courier New">mkdir -p &quot;$HOME/tmp&quot;</font>
<br><font size=2 face="Courier New">LOG=&quot;$HOME/tmp/acroread.exe-log.`id -u -n`&quot;</font>
<br><font size=2 face="Courier New">echo &quot;Arguments received: $@&quot; &gt; $LOG</font>
<br><font size=2 face="Courier New">#</font>
<br><font size=2 face="Courier New">RESULT=`winepath &quot;$@&quot; 2&gt; /dev/null`</font>
<br><font size=2 face="Courier New">echo &quot;/usr/local/bin/acroread $RESULT&quot; &gt;&gt; $LOG</font>
<br><font size=2 face="Courier New">TMP=$TMPDIR ; TEMP=$TMPDIR ; /usr/local/bin/acroread &quot;$RESULT&quot;</font>
<br><font size=2 face="Courier New"># removing the temporary file</font>
<br><font size=2 face="Courier New">rm -f &quot;$RESULT&quot;</font>
<br><font size=2 face="Courier New">---------------------- 8&lt; ---------------------------------</font>
<br>
<br><font size=2 face="Trebuchet MS">&nbsp; &nbsp; &nbsp; &nbsp; I already have system.reg entries for various extensions (DOC, SXW, XLS, SXC, ZIP, HTM, JPG, etc) and their respectives &quot;executables&quot;. </font>
<br><font size=2 face="Trebuchet MS">&nbsp; &nbsp; &nbsp; &nbsp; You have to be careful with some tricks like the $TMP and $TMPDIR that are modified by wine. </font>
<br><font size=2 face="Trebuchet MS">&nbsp; &nbsp; &nbsp; &nbsp; You can have lots of informations if you put at the end of the &quot;executable&quot; script an entry like: &quot;env &gt;&gt; $LOG&quot; to see the environment variables and anything you like.</font>
<br><font size=2 face="Trebuchet MS">&nbsp; &nbsp; &nbsp; &nbsp; If this helps I'd like to know because we can exchange new &quot;executables&quot; for other extensios (mimes)/entries.</font>
<br><font size=2 face="Trebuchet MS">&nbsp; &nbsp; &nbsp; &nbsp; One more tip for lotus notes. You can also modify your browser settings in order to start a linux browser when you get a HTTP link at the email. My notes is in portuguese (brazilian) so I'm figuring out the path/location of the parameters in english .... you have to choose (at the right side at the end of the notes window) something like: Office-&gt;Edit current-&gt;Internet browser. At the &quot;internet browser&quot; choose &quot;Other&quot; and then navigate through the file system in order to find the &quot;mozilla.exe&quot; shell script below (put it somewhere else). There is no need for a system.reg entry.</font>
<br>
<br><font size=2 face="Trebuchet MS">mozilla.exe</font>
<br><font size=2 face="Courier New">---------------------- 8&lt; ---------------------------------</font>
<br><font size=2 face="Courier New">#!/bin/sh</font>
<br>
<br><font size=2 face="Courier New">#set -x</font>
<br><font size=2 face="Courier New">mkdir -p &quot;$HOME/tmp&quot;</font>
<br><font size=2 face="Courier New">LOG=&quot;$HOME/tmp/mozilla.exe-log.`id -u -n`&quot;</font>
<br><font size=2 face="Courier New">echo &quot;Arguments received: $@&quot; &gt; $LOG</font>
<br><font size=2 face="Courier New">MOZILLA_BIN=&quot;/usr/bin/mozilla&quot;</font>
<br><font size=2 face="Courier New">LANG=en $MOZILLA_BIN -remote &quot;ping()&quot; 2&gt;&amp;1 | grep &quot;No running&quot; &gt;&gt; $LOG 2&gt;&amp;1</font>
<br><font size=2 face="Courier New">if [ $? != 0 ] ; then</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;Calling: $MOZILLA_BIN -remote \&quot;openurl(\&quot;$RESULTADO\&quot;, new-window)\&quot;&quot; &gt;&gt; $LOG</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; $MOZILLA_BIN -remote &quot;openurl($RESULTADO, new-window)&quot;</font>
<br><font size=2 face="Courier New">else</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;Calling: $MOZILLA_BIN \&quot;$RESULTADO\&quot;&quot; &gt;&gt; $LOG</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; $MOZILLA_BIN &quot;$RESULTADO&quot;</font>
<br><font size=2 face="Courier New">fi</font>
<br><font size=2 face="Courier New">---------------------- 8&lt; ---------------------------------</font>
<br>
<br><font size=2 face="Trebuchet MS">&nbsp; &nbsp; &nbsp; &nbsp; I have a more sofisticated mozilla.exe script. If you want, please let me know.</font>
<br>
<br><font size=2 face="Trebuchet MS">Hope this helps. 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>