I couldn’t select the Unity version of MD as default in the “Open with…” dialog to open C# files. The MD version from the repos is unusable as well, because it does not accept a file parameter (%F) while opening.
Three possible fixes:
- The Ubuntu packaging team could compile the stock MD with other settings, so that it is actually usable.
- The Unity Editor Linux team fixes the /usr/share/applications/unity-monodevelop.desktop in a way that the application shows up under the “Open with…” dialog. I did not succeed to fix this myself.
- Create a user file under ~/.local/share/applications/unity-monodevelop.desktop with the following content:
[Desktop Entry]
Version=0.0.0f0
Name=MonoDevelop (Unity)
Exec=/opt/Unity/MonoDevelop/bin/monodevelop %F
Icon=unity-monodevelop
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=Development;IDE;Application;
Notes:
-
The file permissions should be set to executable.
-
The paramteres “Exec”, “Type” and “MimeType” parameters are the most crucial ones.
-
Exec requires the %F placeholder
-
MimeType is 1:1 copy of the default repo monodevelop.desktop
The download sizes could be decreased if Unity used the default MD installation, are there any major reasons why this isn’t the case?