PDA

View Full Version : Launching exe files on the command-line now results in an error


bobtestact
May 31st, 2009, 06:35 PM
When I first installed wine, I was able to run a Windows console program by entering its name on the bash command-line, like so:

$ /winapps/prog.exe

Now, suddenly, this doesn't work anymore, and I get the following error:

run-detectors: unable to find an interpreter for /winapps/prog.exe

Other than this problem, wine continues to work fine, and I can still run the console program by using this command:

$ wine /winapps/prog.exe

What happened? How can I restore the ability of the "run-detector" (whatever that is) to recognize that exe files should be run with wine, like they used to?

Can somebody give me a pointer to information to figure out what this "run-detector" is, and how to configure it to run Win32 exe files under wine?

(By the way, this bug also prevents me from using a desktop application launcher where Command="/winapps/winprog.exe". I had to go and change all of my launchers to be like Command="wine '/winapps/winprog.exe' ".)

This is quite an annoyance, as I'm a very heavy user of the bash command-line, and I have a huge number of legacy Win32 console programs that I still rely on.

[Ubuntu 9.04, wine 1.0.1]

crusaderbond
June 1st, 2009, 01:22 AM
I've had this problem before. Most likely, wine is no longer your default app for opening .exes. What you do, is navigate to the exe in question, right click on it, and hit open with. Then select wine. This will probably fix it.

There is no such thing as a run detector though. Ubuntu has a database type thing that tells it which program to use to open a file. Wine is no longer associated with your exe. When you hit open with, then select wine, it should fix that.

hikaricore
June 1st, 2009, 01:33 AM
I've had this problem before. Most likely, wine is no longer your default app for opening .exes. What you do, is navigate to the exe in question, right click on it, and hit open with. Then select wine. This will probably fix it.

There is no such thing as a run detector though. Ubuntu has a database type thing that tells it which program to use to open a file. Wine is no longer associated with your exe. When you hit open with, then select wine, it should fix that.

Nautilus/Konqueror/Dolphin/Thunar file associations have nothing to do with running binaries through WINE from command line.
Please pay attention when you reply to threads as to what you're about.

YokoZar
June 1st, 2009, 01:05 PM
Hmm, it sounds like something went wrong in binfmt-misc

bobtestact
June 1st, 2009, 10:44 PM
Thanks for the tip about binfmt-misc -- I think that's the starting point I needed.

FYI, when I use the following command:

$ update-binfmts --display

I get this result:

cli (disabled):
package = mono-common
type = magic
offset = 0
magic = MZ
mask =
interpreter = /usr/bin/cli
detector = /usr/lib/cli/binfmt-detector-cli
wine (disabled):
package = wine
type = magic
offset = 0
magic = MZ
mask =
interpreter = /usr/bin/wine
detector =
jar (disabled):
package = sun-java6
type = magic
offset = 0
magic = PK\x03\x04
mask =
interpreter = /usr/lib/jvm/java-6-sun-1.6.0.13/jre/lib/jexec
detector =
python2.6 (disabled):
package = python2.6
type = magic
offset = 0
magic = \xd1\xf2\x0d\x0a
mask =
interpreter = /usr/bin/python2.6
detector =

All those "(disabled)" tags are interesting. I'll experiment with the command "update-binfmts --enable" to try to re-enable them.

I'd like to see some examples of other people's output for "update-binfmts --display", just to compare with mine.

Does anyone have an idea what could cause all your binfmts to get disabled like this? My latest apt installs have been (in reverse chronological order): mdbtools, openoffice.org-base, xclip, tofrodos, and putty. Prior to that, my binfmts were working fine.