Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have Wine installed and several Windows applications installed there run fine, if I start them using the right mouse menu "Open with Wine program loader". But if I try starting an .exe file by just double clicking instead, the archive manager tries to open the executable.

How do I fix that?

And something like a bonus question as a former Windows user: Can this be done easily for a single file I currently see in the file manager (similar to the "Open with..." context menu in Windows) and for many file types together (like in Windows, using the menu "Folder settings" in the Explorer)?

share|improve this question

3 Answers 3

up vote 11 down vote accepted

Right-click, select Properties, open the "Open With" tab, and make Wine the default application for EXE files.

share|improve this answer
    
Thanks. Works fine now. I'm still wondering why the archive manager was assigned to executables in the first place. Maybe to read executable zip files? –  Bananeweizen Aug 30 '10 at 17:28
    
That's my guess too: self-extracting archives (not necessarily zip, rar has those too IIRC). –  Marius Gedminas Sep 9 '10 at 14:29

The reason why this occurs is in this bug report, which I provided a patch for about 2 years ago: https://bugs.launchpad.net/ubuntu/+source/file-roller/+bug/351429

Regardless, the workaround I generally use is to just right click the application and select open with Wine.

share|improve this answer
    
Thanks for the info. That's exactly what I suspected, but were not able to find out with my limited knowledge. –  Bananeweizen Sep 29 '10 at 17:11

That does not always work. Some settings for file type handling can be found in

.local/share/applications/mimeapps.list

In that file, I found the follow line:

application/x-ms-dos-executable=file-roller.desktop;wine.desktop;

and changed it to

application/x-ms-dos-executable=wine.desktop;

After saving the file the result is active immediately.

share|improve this answer
    
If this answer is intended as a comment on someone else's answer (i.e. Marius Gedminas) you should add information to your answer about whose answer you are referring to. –  karel Jul 27 '13 at 8:38

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.