Hi, the following patch adds the correct MimeType to the gvim desktop file... with this nautilus for example let you open text files with gvim Bye
Created attachment 42452 [details, diff] gvim.desktop.diff
as long as your are patching, why stop at just plain text files? I'd want it to do any sort of source files and probably other things that there are mime types for. Take a look in /usr/share/mime/text for a more complete list.
Joe -- got a better example for me? Not being a Gnome user, I have only a rough idea of what that file does anyway...
Closing this as needinfo. Please reopen if a decent list can be provided (can this be, er, borrowed from another distro?).
Created attachment 47286 [details, diff] gvim.desktop.diff Gnome uses the information provided in .desktop files for many things. One of them is deciding which applications are associated with mime types. Listing all of these mime types in the gvim.desktop file will cause files that are off that type to open in gvim by default. If more then one application is associated with a mime type, the user can choose from a list of applications via a right click menu. In short, a users text/source/patch etc.. files will now open in gvim when they click them.
Thanks Joe. Marking for inclusion in the next gvim bump.
In, thanks.