How to pass / convert file names?

Christian Britz cbritz at gmx.net
Tue Jul 26 14:10:48 CDT 2005


Dear Stefan,

Stefan Dösinger schrieb:

> Try this script:
> 
> #!/bin/bash
> document=`winepath -l "$1"`
> exec wine start.exe "$document"

Marvellous! This is exactly the solution I need. :-) Maybe I should have
been able to guess better what the "path" in winepath actually stands
for... ;-)

> If the word viewer installed the .doc file format in the wine registry you can 
> call winestart /some/unix/path/file.doc and wine will start the asociated 
> application automatically.

Yes, this works without any problems so far (using the Office 97
versions of the Word-, Excel- and PowerPoint viewers, they seem to be
most compatible), even with Mozilla! I stored your little script under
the name /usr/local/bin/winestart and selected that in the MIME options.

Now it feels 100% native to click on the "FUD" documents on
www.microsoft.com! ;-)

> I've also written a small C program which scans the registry and 
> creates .desktop files for each mime type found. I've sent a first alpha 
> version to this list late June. With these .desktop files in place you can 
> just click on the files in Konqueror or (I think so, but didn't test) the 
> Gnome Equivalent and they will open.

This sounds interesting to me. I will be pleased to test your program
with Nautilus (the Gnome equivalent to Konqueror). I will search for
your submission on the ML archives, if you have a newer version please
tell me how to get it.

> It's far away from beeing mature, but you can give it a try.

I will! :^)

> I don't think that these .desktop files directly, but theres a kstart program 
> which allows you to open any file KDE knows, and this works from literally 
> any application.

I didn't get this sentence.

Thank you very much,
Christian





More information about the wine-devel mailing list