<br><font size=2 face="Trebuchet MS">Hi Rainer,</font>
<br><font size=2 face="Courier New"><br>
> 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 ;)</font>
<br><font size=2 face="Courier New"><br>
> what i want is, to define which application should be started for<br>
> which attachment type. so for microsoft attachments i want to start<br>
> my linux version of open office and for pdf files i want also to start<br>
> my linux version of acrobat reader or xpdf!<br>
> <br>
> so, where do i have to configure this stuff?<br>
> <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"> <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< --------------------------------</font>
<br><font size=2 face="Courier New">[Software\\Classes\\.pdf] 1051470000</font>
<br><font size=2 face="Courier New">@="acroread.pdf"</font>
<br>
<br><font size=2 face="Courier New">[Software\\Classes\\acroread.pdf] 1051470000</font>
<br><font size=2 face="Courier New">@="Documento Adobe PDF"</font>
<br>
<br><font size=2 face="Courier New">[Software\\Classes\\acroread.pdf\\DefaultIcon] 1051470000</font>
<br><font size=2 face="Courier New">@="C:\\Program Files\\Acroread\\acroread.exe,1"</font>
<br>
<br><font size=2 face="Courier New">[Software\\Classes\\acroread.pdf\\shell] 1051470000</font>
<br><font size=2 face="Courier New">@="open"</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">@="\"C:\\Program Files\\Acroread\\acroread.exe\" \"%1\""</font>
<br><font size=2 face="Courier New">---------------------- 8< ---------------------------------</font>
<br>
<br><font size=2 face="Courier New">2) the linux "executable" acroread.exe *must have8 be placed at the above dir (the linux "executable" 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< ---------------------------------</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 "$HOME/tmp"</font>
<br><font size=2 face="Courier New">LOG="$HOME/tmp/acroread.exe-log.`id -u -n`"</font>
<br><font size=2 face="Courier New">echo "Arguments received: $@" > $LOG</font>
<br><font size=2 face="Courier New">#</font>
<br><font size=2 face="Courier New">RESULT=`winepath "$@" 2> /dev/null`</font>
<br><font size=2 face="Courier New">echo "/usr/local/bin/acroread $RESULT" >> $LOG</font>
<br><font size=2 face="Courier New">TMP=$TMPDIR ; TEMP=$TMPDIR ; /usr/local/bin/acroread "$RESULT"</font>
<br><font size=2 face="Courier New"># removing the temporary file</font>
<br><font size=2 face="Courier New">rm -f "$RESULT"</font>
<br><font size=2 face="Courier New">---------------------- 8< ---------------------------------</font>
<br>
<br><font size=2 face="Trebuchet MS"> I already have system.reg entries for various extensions (DOC, SXW, XLS, SXC, ZIP, HTM, JPG, etc) and their respectives "executables". </font>
<br><font size=2 face="Trebuchet MS"> 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"> You can have lots of informations if you put at the end of the "executable" script an entry like: "env >> $LOG" to see the environment variables and anything you like.</font>
<br><font size=2 face="Trebuchet MS"> If this helps I'd like to know because we can exchange new "executables" for other extensios (mimes)/entries.</font>
<br><font size=2 face="Trebuchet MS"> 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->Edit current->Internet browser. At the "internet browser" choose "Other" and then navigate through the file system in order to find the "mozilla.exe" 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< ---------------------------------</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 "$HOME/tmp"</font>
<br><font size=2 face="Courier New">LOG="$HOME/tmp/mozilla.exe-log.`id -u -n`"</font>
<br><font size=2 face="Courier New">echo "Arguments received: $@" > $LOG</font>
<br><font size=2 face="Courier New">MOZILLA_BIN="/usr/bin/mozilla"</font>
<br><font size=2 face="Courier New">LANG=en $MOZILLA_BIN -remote "ping()" 2>&1 | grep "No running" >> $LOG 2>&1</font>
<br><font size=2 face="Courier New">if [ $? != 0 ] ; then</font>
<br><font size=2 face="Courier New"> echo "Calling: $MOZILLA_BIN -remote \"openurl(\"$RESULTADO\", new-window)\"" >> $LOG</font>
<br><font size=2 face="Courier New"> $MOZILLA_BIN -remote "openurl($RESULTADO, new-window)"</font>
<br><font size=2 face="Courier New">else</font>
<br><font size=2 face="Courier New"> echo "Calling: $MOZILLA_BIN \"$RESULTADO\"" >> $LOG</font>
<br><font size=2 face="Courier New"> $MOZILLA_BIN "$RESULTADO"</font>
<br><font size=2 face="Courier New">fi</font>
<br><font size=2 face="Courier New">---------------------- 8< ---------------------------------</font>
<br>
<br><font size=2 face="Trebuchet MS"> I have a more sofisticated 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 Fax: +55-61-310-6435<br>
---------------------------------------------------------</font>