exporting file associations for linux desktops

Misha Koshelev mk144210 at bcm.edu
Wed Aug 8 20:41:49 CDT 2007


> To register those verbs for Linux desktops, some sort of command-line
> wrapper around ShellExecute would be needed. I think this is a good
> idea anyway. Does Windows have anything like that? Is it worth it for
> me to try writing something like that based on winelib?
Well this is exactly the start program which is already implemented. In fact I
thought about this problem myself a bit, the problems with start right now for
this purpose (starting wine associated files from linux) are:
1. start currently doesn't understand a simple UNIX path, easily fixed by prepending a Z: 
   (assuming this is the drive the user has mapped to the UNIX root dir)
2. there is no standalone winestart program, and at least from my experimentation with
   Right Click->Open File With... on GNOME (or whatever the menu item is called), it
   won't let you put in "wine start" or wine start or the sort.

What I actually do right now is use this shell script (I almost started working on this
problem but then since the shell script was so easy I decided to focus on other things,
but am still very interested in seeing it solved):

#!/bin/sh
wine start Z:$*

And just associating it with my file type (well the problem with doing what I am doing
is I am just associating it with a file .gb which I guess GNOME puts into some kind of
text/plain type, so anything that is a text file ends up being opened with notepad on wine
instead of gedit... I am too lazy to make it any more complex on my computer for now).

Anyway, just though this info might help if you were not already aware, as the start program
is definitely this wrapper around ShellExecute that already exists. One possibility would be
to extend it to handle UNIX paths and then have it compiled and installed as a standalone winestart -
like the other wine standalone programs we install, another is just to have the shell script somewhat 
like above installed (dangerous as Z: may not be mapped to the root so this would have to figured out) -
I believe wineshelllink which is installed is a shell script, or maybe even go the route of letting
the wine binary itself ShellExecute things (haven't really looked at it/thought this out in detail).

Anyway, just my two cents. Thanks for thinking about/hopefully working on this.

Misha

> 
> 
> -- 
> Vincent Povirk



More information about the wine-devel mailing list