Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 68622

Summary: gvim: desktop file updated with MimeType
Product: Gentoo Linux Reporter: Sebastian Dröge <sebastian.droege>
Component: New packagesAssignee: Vim Maintainers <vim>
Status: RESOLVED FIXED    
Severity: normal CC: joem
Priority: High Keywords: Inclusion
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: gvim.desktop.diff
gvim.desktop.diff

Description Sebastian Dröge 2004-10-23 03:27:07 UTC
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
Comment 1 Sebastian Dröge 2004-10-23 03:27:46 UTC
Created attachment 42452 [details, diff]
gvim.desktop.diff
Comment 2 Joe McCann (RETIRED) gentoo-dev 2004-10-23 04:00:58 UTC
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. 
Comment 3 Ciaran McCreesh 2004-10-23 07:55:52 UTC
Joe -- got a better example for me? Not being a Gnome user, I have only a rough idea of what that file does anyway...
Comment 4 Ciaran McCreesh 2004-12-31 10:39:48 UTC
Closing this as needinfo. Please reopen if a decent list can be provided (can this be, er, borrowed from another distro?).
Comment 5 Joe McCann (RETIRED) gentoo-dev 2004-12-31 12:19:35 UTC
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.
Comment 6 Ciaran McCreesh 2004-12-31 12:27:37 UTC
Thanks Joe. Marking for inclusion in the next gvim bump.
Comment 7 Ciaran McCreesh 2005-01-13 14:22:18 UTC
In, thanks.