Updates:<br><br>I renamed the shell script &quot;winelaunch&quot; to &quot;winenative&quot; to avoid confusion with the &quot;winelauncher&quot; binary.&nbsp; <br><br>It will need some work to dynamically use switches, like &quot;-p&quot; for printing etc.&nbsp; Any basic shell scripter could prob help me out with that one.&nbsp; Let me know if you can help.<br>
<br>I&#39;ve modified the native call to simply call on &quot;gnome-open&quot;.&nbsp; It seamlessly opens any file you want natively.&nbsp; I&#39;d like to include samples for kde, xfce, etc (or determine dynamically if that&#39;s a possibility).<br>
<br>I&#39;ve attached two files.&nbsp; &quot;word.reg&quot; is a sample registry file.&nbsp; Save it to your desktop and do an import on it. Please note, the &quot;-p&quot; portion won&#39;t work until the switches are sorted out, but won&#39;t do any harm.<br>
&nbsp;&nbsp; #&gt;&nbsp; regedit /home/username/Desktop/word.reg<br><br>The second file is the &quot;winenative&quot; shell script.&nbsp; Save it to your desktop, copy it to /usr/bin, and make it executable:<br>&nbsp;&nbsp; #&gt;&nbsp; sudo cp /home/username/Desktop/winenative /usr/bin/<br>
&nbsp;&nbsp; #&gt;&nbsp; sudo chmod +x /usr/bin/winenative<br>&nbsp;&nbsp; <br>Then try to open a word document with your windows application.<br><br>-Tres<br><br><div class="gmail_quote">On Wed, Jan 30, 2008 at 7:40 AM, A. Tres Finocchiaro &lt;<a href="mailto:tres.finocchiaro@gmail.com">tres.finocchiaro@gmail.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">My first post.<br><br>Fun Wine Project -- Configure Some Default Registry Entries<br><br>I&#39;ve begun working on this to import some native calls into wine.&nbsp; More specifically, OpenOffice.org.&nbsp; I&#39;m trying to get Lotus Notes attachments to display proper icons, and open natively with OOo.<br>

<br>I&#39;ve come across a dilemma. I can&#39;t seem to &quot;easily&quot; open a Windows path, i.e. &quot;C:\Windows\temp\test.doc&quot; with openoffice due to path issues.<br><br>I&#39;ve implemented a very small fix called &quot;winelaunch&quot;, but I&#39;m afraid the name is too close to &quot;winelauncher&quot;, and would probably confuse people.&nbsp; Here&#39;s it&#39;s code:<br>

<br>&nbsp;&nbsp; #!/bin/sh<br>&nbsp;&nbsp; #/usr/bin/winelaunch<br>&nbsp;&nbsp; $1 `winepath $2 $3`;<br>&nbsp;&nbsp; exit 1;<br><br>And here&#39;s a sample registry entry:<br><br>&nbsp;&nbsp; REGEDIT4
<br>&nbsp;<br>&nbsp;&nbsp; [HKEY_CLASSES_ROOT\.doc]
<br>&nbsp;&nbsp; @=&quot;docfile&quot;
<br>&nbsp;&nbsp; &quot;Content Type&quot;=&quot;application/ooowriter&quot;<br>&nbsp;&nbsp; <br>&nbsp;&nbsp; [HKEY_CLASSES_ROOT\docfile]
<br>&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp; [HKEY_CLASSES_ROOT\docfile\shell]
<br><div>&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp; [HKEY_CLASSES_ROOT\docfile\shell\open]
<br>&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp; [HKEY_CLASSES_ROOT\docfile\shell\open\command]<br>&nbsp;&nbsp; @=&quot;/usr/bin/winelaunch /usr/bin/openoffice %1&quot;<br><br>Although icons don&#39;t display properly, it does open the attachment in Lotus Notes.<br>

<br>Cheers.<br><br>-Tres<br></div><font color="#888888">-- <br>- <a href="mailto:Tres.Finocchiaro@gmail.com" target="_blank">Tres.Finocchiaro@gmail.com</a>
</font></blockquote></div><br><br clear="all"><br>-- <br>- <a href="mailto:Tres.Finocchiaro@gmail.com">Tres.Finocchiaro@gmail.com</a>