Add Mono Runtime to Linux Open With menu

Published by arifur on

Install mono and mono develop packages. Now you will be able to run .exe files from the terminal by using the following command mono foo.exe This is enough for most people but if you want to have the option of opening with Mono Runtime on your Open With menu then follow the steps below.

cd /usr/share/applications
sudo touch monoRuntime.desktop
    #or
sudo nano monoRuntime.desktop

Paste the following text and save the file [Desktop Entry] Version=1.0 Encoding=UTF-8 Name=Mono Runtime GenericName=.Net Runtime Comment=Execute .NET applications Exec=mono %F TryExec=mono Icon=monodevelop StartupNotify=true Terminal=false Type=Application MimeType=text/x-csharp;application/x-mds;application/x-mdp;application/x-cmbx;application/x-prjx;application/x-csproj;application/x-vbproj;application/x-sln;application/x-aspx;text/xml;application/xhtml+xml;text/html;text/plain; Categories=GNOME;GTK;Development;IDE; X-GNOME-Bugzilla-Bugzilla=Ximian X-GNOME-Bugzilla-Product=Mono runtime X-GNOME-Bugzilla-OtherBinaries=mono This will create a menu entry for Mono Runtime. You can use this on your Open With menu too. Right Click on a .exe click Open With Other Applications Scroll down and select Mono Runtime

Categories: Blog

0 Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.