[Wine] Help launching linux Google Earth from wine?

Berni Elbourn berni at elbournb.fsnet.co.uk
Wed Nov 10 07:47:40 CST 2010

Re: http://wiki.winehq.org/FAQ section 7.5

I have set things up on this Ubuntu 10.04 system, which has wine-1.2 as 
follows. Scratching my head here...any pointers please?

elbournb at ubuntu:~$ cat ge.reg
"Content Type"="application/googleearth"
@="/bin/bash run_linx_program googleearth \"%1\""

elbournb at ubuntu:~$ wine regedit ge.reg

 >>> I can see the entries in the registry

elbournb at ubuntu:~$ cat /home/elbournb/bin/run_linx_program
$1 "`wine winepath -u "$2"`"

elbournb at ubuntu:~$ ls -l ~/bin
total 4
-rwxr-xr-x 1 elbournb elbournb 39 2010-11-09 14:20 run_linx_program

elbournb at ubuntu:~$ echo $PATH

 >>>> run_linx_program is executable and in the PATH. All should be ok....erm 
well nope:

elbournb at ubuntu:~$ wine start c:\users\elbournb\Desktop\gefile.kml
Application could not be started, or no application associated with the 
specified file.
ShellExecuteEx failed: File not found

 >>>>Interestingly, renaming the file:

elbournb at ubuntu:~$ wine notepad c:\users\elbournb\Desktop\gefile.txt
fixme:exec:SHELL_execute flags ignored: 0x00000100

 >>> and notepad opens the file.


More information about the wine-users mailing list