如何将Mono Runtime设置为默认应用程序? [英] How to set Mono Runtime as default application?

查看:133
本文介绍了如何将Mono Runtime设置为默认应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Ubuntu + Mono上运行一个Windows exe文件。当我右键单击exe文件并选择Open With | Mono Runtime时,exe文件可以正常执行。但是当使用相同的短菜单并选择打开方式|其他应用程序...时,选择对话框没有Mono Runtime条目,因此我无法选择Mono Runtime并将其设置为默认应用程序。

这意味着每当我想运行exe文件时,我不能只是双击文件来运行它,但必须右键单击它并打开方式| Mono Runtime。

有没有方法将Mono Runtime设置为默认应用程序?

PS。我已经安装了MonoDevelop。

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.

推荐答案

实际上,这个想法非常简单,但确切的实现取决于您使用的桌面环境,即使每个人都可能有所不同像文件管理器这样的应用程序,它可以拥有自己的文件类型的注册系统。有了Linux(Ubuntu与否),有大量不同的选项和它们的组合,自己做研究并找到一些方便的设置。



这是所有这一切的目标:mono可用于开发或运行通常命名为* .exe的应用程序。你真的不需要MonoDevelop,这只是方便的开发IDE。它不构建任何东西,只使用mono,就像Visual Studio使用MSBuild一样。



格式非常简单。假设您的应用程序主可执行文件与当前目录位于同一目录中并命名为application.exe,它看起来像:

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



您需要使用此命令打开名称模式* .exe来定义文件类型。请参阅桌面管理器和/或文件管理器的文档。



-SA


这篇关于如何将Mono Runtime设置为默认应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆