Click here to Skip to main content
15,884,176 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to run a windows exe file on Ubuntu + Mono. When I right click the exe file and select "Open With| Mono Runtime", the exe file can be executed normally. But when use the same short menu and select "Open With | Other Applications..." , the select dialog box has no "Mono Runtime" entry so I cannot select "Mono Runtime" and set it as default application.
That means whenever I want to run the exe file, I cannot just double click the file to run it but have to right click it and "Open With | Mono Runtime".
Is there any methods to set Mono Runtime as default application?
PS. I have already installed the MonoDevelop.
Posted

1 solution

Actually, the idea is very simple, but exact implementation depends on your desktop environment you are using and can be different even for every application like a file manager which can have its own system of registration of file types. With Linux (Ubuntu or not) there is big number of different options and their combination, do the research by yourself and find some settings convenient for you.

Here is the goal of all of it: mono can be used to either development or for running applications which usually are named as *.exe. You don't really need MonoDevelop, this is just the convenient IDE for development. It does not build anything, just uses mono, exactly as Visual Studio uses MSBuild.

The format is very simple. Assuming that your application main executable is located in the same directory as your current directory and named "application.exe", it looks like:
mono ./myApplication.exe

You need to define the file type by the name pattern *.exe to be opened with this command. Refer to the documentation of your desktop manager and/or your file manager.

—SA
 
Share this answer
 
v2
Comments
wusir371 8-Aug-13 23:21pm    
Thanks. I will try it.
Sergey Alexandrovich Kryukov 8-Aug-13 23:41pm    
Great. Let's see.
—SA
wusir371 9-Aug-13 0:46am    
mono ./myApplication.exe works.
Now I am tring to define the *.exe file type to be opened with this command.
If succeed, I'll post here.
Thanks
Sergey Alexandrovich Kryukov 9-Aug-13 1:30am    
Great...
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900