[MonoDevelop] why all the exe files say "couldn't display [the path of the exe file]" when double click to lanuch?

Star Liu minxinjianxin at gmail.com
Mon Mar 9 22:30:18 EDT 2009


On Tue, Mar 10, 2009 at 3:12 AM, Tom Spink <tspink at gmail.com> wrote:
> 2009/3/9 Star Liu <minxinjianxin at gmail.com>:
>> thank you, your analysis are right, and I'm really using gnome on
>> debian sid amd64.
>
> No problem.  I *think* you may have to mess around with .desktop files
> to get this to work - I can honestly say I haven't looked into it
> fully yet, so I can't give you a concrete solution; but I may be able
> to give you a starting point.
>
> In /usr/share/applications there are a series of .desktop files.  If
> you've got wine installed, you should take a look at the wine.desktop
> file and see if you can reverse engineer it to work with mono.  Make a
> copy of it, then you should probably change the exec line to:
>
>  Exec=mono %f
>
> And, of course, each of the lines that describe what the desktop file
> is to reflect the fact that it's the Mono launcher now.  Take a look
> at this guide for help on desktop files:
>
>  http://standards.freedesktop.org/desktop-entry-spec/latest/
Hi Tom, thank you for the information, I think that's what I need, so
I read the free desktop document and made a desktop file for mono,
here is the content of my new created
/usr/share/applications/mono.desktop(or the attatched)
-------------------
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Mono
GenericName=Runtime
Comment=The runtime for .NET applications
Exec=mono %f
NoDisplay=true
StartupNotify=true
Terminal=false
Type=Application
MimeType=application/x-ms-dos-executable;
--------------------
but it makes nothing change, double click on the exe file still
displays error message "couldn't display....", is there anything wrong
with my desktop file? or anything more i need to do? thank you.













> Hopefully this can get you started.  If you've not got the
> wine.desktop file, here it is:
>
>  http://source.winehq.org/source/tools/wine.desktop
>
> Hope this helps,
> --
> Tom Spink
> James Brown  - "I'm kidding about having only a few dollars. I might
> have a few dollars more."
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mono.desktop
Type: application/octet-stream
Size: 235 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/monodevelop-list/attachments/20090310/5eaa29fb/attachment-0001.obj 


More information about the Monodevelop-list mailing list