Well, this should handle most all file types.&nbsp; What is winecfg written in?&nbsp; I&#39;d be happy to work with the source, but I&#39;m a java guy, so I might be spinning my wheels.<br><br>The URIs/URLs may be a bit tougher to wrap up.<br>
<br>As far as going in the other direction, simply using &quot;wine start /path/to/file&quot; in theory would launch wine&#39;s default app for that association.&nbsp; Should be a one-liner.<br><br>-Tres<br><br><div class="gmail_quote">
On Wed, Jan 30, 2008 at 9:56 PM, Dave M &lt;<a href="mailto:DaveM@mich.com">DaveM@mich.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;">
I have been thinking that this sort of thing should be part of wineconfig.<br>
Windows allows users to define what applications should open what documents<br>
and so should wine. But wine should also have the added benefit of allowing<br>
a choice of native or windows apps to be used. It was a major pain getting<br>
my windows apps to launch native firefox when links are clicked. It would<br>
be nice if this was built into wine.<br>
<br>
Just my $.02<br>
<br>
Dave<br>
<div class="Ih2E3d"><br>
At 04:54 PM 1/30/2008 , Tres wrote:<br>
&gt;Updates:<br>
&gt;<br>
&gt;I renamed the shell script &quot;winelaunch&quot; to &quot;winenative&quot; to avoid confusion<br>
&gt;with the &quot;winelauncher&quot; binary.<br>
&gt;<br>
&gt;It will need some work to dynamically use switches, like &quot;-p&quot; for printing<br>
&gt;etc. &nbsp;Any basic shell scripter could prob help me out with that one. &nbsp;Let<br>
&gt;me know if you can help.<br>
&gt;<br>
&gt;I&#39;ve modified the native call to simply call on &quot;gnome-open&quot;. &nbsp;It<br>
&gt;seamlessly opens any file you want natively. &nbsp;I&#39;d like to include samples<br>
&gt;for kde, xfce, etc (or determine dynamically if that&#39;s a possibility).<br>
&gt;<br>
&gt;I&#39;ve attached two files. &nbsp;&quot;word.reg&quot; is a sample registry file. &nbsp;Save it<br>
&gt;to your desktop and do an import on it. Please note, the &quot;-p&quot; portion<br>
&gt;won&#39;t work until the switches are sorted out, but won&#39;t do any harm.<br>
&gt; &nbsp; &nbsp;#&gt; &nbsp;regedit /home/username/Desktop/word.reg<br>
&gt;<br>
&gt;The second file is the &quot;winenative&quot; shell script. &nbsp;Save it to your<br>
&gt;desktop, copy it to /usr/bin, and make it executable:<br>
&gt; &nbsp; &nbsp;#&gt; &nbsp;sudo cp /home/username/Desktop/winenative /usr/bin/<br>
&gt; &nbsp; &nbsp;#&gt; &nbsp;sudo chmod +x /usr/bin/winenative<br>
&gt;<br>
&gt;Then try to open a word document with your windows application.<br>
&gt;<br>
&gt;-Tres<br>
&gt;<br>
&gt;On Wed, Jan 30, 2008 at 7:40 AM, A. Tres Finocchiaro<br>
</div><div><div></div><div class="Wj3C7c">&gt;&lt;&lt;mailto:<a href="mailto:tres.finocchiaro@gmail.com">tres.finocchiaro@gmail.com</a>&gt;<a href="mailto:tres.finocchiaro@gmail.com">tres.finocchiaro@gmail.com</a>&gt; wrote:<br>

&gt;&gt;My first post.<br>
&gt;&gt;<br>
&gt;&gt;Fun Wine Project -- Configure Some Default Registry Entries<br>
&gt;&gt;<br>
&gt;&gt;I&#39;ve begun working on this to import some native calls into wine. &nbsp;More<br>
&gt;&gt;specifically, OpenOffice.org. &nbsp;I&#39;m trying to get Lotus Notes attachments<br>
&gt;&gt;to display proper icons, and open natively with OOo.<br>
&gt;&gt;<br>
&gt;&gt;I&#39;ve come across a dilemma. I can&#39;t seem to &quot;easily&quot; open a Windows path,<br>
&gt;&gt;i.e. &quot;C:\Windows\temp\test.doc&quot; with openoffice due to path issues.<br>
&gt;&gt;<br>
&gt;&gt;I&#39;ve implemented a very small fix called &quot;winelaunch&quot;, but I&#39;m afraid the<br>
&gt;&gt;name is too close to &quot;winelauncher&quot;, and would probably confuse<br>
&gt;&gt;people. &nbsp;Here&#39;s it&#39;s code:<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp;#!/bin/sh<br>
&gt;&gt; &nbsp; &nbsp;#/usr/bin/winelaunch<br>
&gt;&gt; &nbsp; &nbsp;$1 `winepath $2 $3`;<br>
&gt;&gt; &nbsp; &nbsp;exit 1;<br>
&gt;&gt;<br>
&gt;&gt;And here&#39;s a sample registry entry:<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp;REGEDIT4<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp;[HKEY_CLASSES_ROOT\.doc]<br>
&gt;&gt; &nbsp; &nbsp;@=&quot;docfile&quot;<br>
&gt;&gt; &nbsp; &nbsp;&quot;Content Type&quot;=&quot;application/ooowriter&quot;<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp;[HKEY_CLASSES_ROOT\docfile]<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp;[HKEY_CLASSES_ROOT\docfile\shell]<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp;[HKEY_CLASSES_ROOT\docfile\shell\open]<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp;[HKEY_CLASSES_ROOT\docfile\shell\open\command]<br>
&gt;&gt; &nbsp; &nbsp;@=&quot;/usr/bin/winelaunch /usr/bin/openoffice %1&quot;<br>
&gt;&gt;<br>
&gt;&gt;Although icons don&#39;t display properly, it does open the attachment in<br>
&gt;&gt;Lotus Notes.<br>
&gt;&gt;<br>
&gt;&gt;Cheers.<br>
&gt;&gt;<br>
&gt;&gt;-Tres<br>
&gt;&gt;--<br>
</div></div>&gt;&gt;- &lt;mailto:<a href="mailto:Tres.Finocchiaro@gmail.com">Tres.Finocchiaro@gmail.com</a>&gt;<a href="mailto:Tres.Finocchiaro@gmail.com">Tres.Finocchiaro@gmail.com</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;--<br>
&gt;- &lt;mailto:<a href="mailto:Tres.Finocchiaro@gmail.com">Tres.Finocchiaro@gmail.com</a>&gt;<a href="mailto:Tres.Finocchiaro@gmail.com">Tres.Finocchiaro@gmail.com</a><br>
&gt;Content-Type: application/octet-stream; name=winenative<br>
&gt;X-Attachment-Id: f_fc34i45k0<br>
&gt;Content-Disposition: attachment; filename=winenative<br>
&gt;<br>
&gt;Content-Type: application/octet-stream; name=word.reg<br>
&gt;X-Attachment-Id: f_fc34iilb1<br>
&gt;Content-Disposition: attachment; filename=word.reg<br>
&gt;<br>
&gt;_______________________________________________<br>
&gt;wine-users mailing list<br>
&gt;<a href="mailto:wine-users@winehq.org">wine-users@winehq.org</a><br>
&gt;<a href="http://www.winehq.org/mailman/listinfo/wine-users" target="_blank">http://www.winehq.org/mailman/listinfo/wine-users</a><br>
<br>
-------------------------------<br>
Dave M<br>
Davem (at) Mich (dot) Com<br>
Ann Arbor, Mich. USA<br>
<br>
First Sale doctrine under attack, libraries at risk:<br>
<br>
<a href="http://www.eff.org/deeplinks/archives/005400.php" target="_blank">http://www.eff.org/deeplinks/archives/005400.php</a><br>
<br>
<br>
_______________________________________________<br>
wine-users mailing list<br>
<a href="mailto:wine-users@winehq.org">wine-users@winehq.org</a><br>
<a href="http://www.winehq.org/mailman/listinfo/wine-users" target="_blank">http://www.winehq.org/mailman/listinfo/wine-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>- <a href="mailto:Tres.Finocchiaro@gmail.com">Tres.Finocchiaro@gmail.com</a>