Updates:<br><br>I renamed the shell script "winelaunch" to "winenative" to avoid confusion with the "winelauncher" binary. <br><br>It will need some work to dynamically use switches, like "-p" for printing etc. Any basic shell scripter could prob help me out with that one. Let me know if you can help.<br>
<br>I've modified the native call to simply call on "gnome-open". It seamlessly opens any file you want natively. I'd like to include samples for kde, xfce, etc (or determine dynamically if that's a possibility).<br>
<br>I've attached two files. "word.reg" is a sample registry file. Save it to your desktop and do an import on it. Please note, the "-p" portion won't work until the switches are sorted out, but won't do any harm.<br>
#> regedit /home/username/Desktop/word.reg<br><br>The second file is the "winenative" shell script. Save it to your desktop, copy it to /usr/bin, and make it executable:<br> #> sudo cp /home/username/Desktop/winenative /usr/bin/<br>
#> sudo chmod +x /usr/bin/winenative<br> <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 <<a href="mailto:tres.finocchiaro@gmail.com">tres.finocchiaro@gmail.com</a>> 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've begun working on this to import some native calls into wine. More specifically, OpenOffice.org. I'm trying to get Lotus Notes attachments to display proper icons, and open natively with OOo.<br>
<br>I've come across a dilemma. I can't seem to "easily" open a Windows path, i.e. "C:\Windows\temp\test.doc" with openoffice due to path issues.<br><br>I've implemented a very small fix called "winelaunch", but I'm afraid the name is too close to "winelauncher", and would probably confuse people. Here's it's code:<br>
<br> #!/bin/sh<br> #/usr/bin/winelaunch<br> $1 `winepath $2 $3`;<br> exit 1;<br><br>And here's a sample registry entry:<br><br> REGEDIT4
<br> <br> [HKEY_CLASSES_ROOT\.doc]
<br> @="docfile"
<br> "Content Type"="application/ooowriter"<br> <br> [HKEY_CLASSES_ROOT\docfile]
<br> <br> [HKEY_CLASSES_ROOT\docfile\shell]
<br><div> <br> [HKEY_CLASSES_ROOT\docfile\shell\open]
<br> <br> [HKEY_CLASSES_ROOT\docfile\shell\open\command]<br> @="/usr/bin/winelaunch /usr/bin/openoffice %1"<br><br>Although icons don'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>