Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68622 - gvim: desktop file updated with MimeType
Summary: gvim: desktop file updated with MimeType
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2004-10-23 03:27 UTC by Sebastian Dröge
Modified: 2005-01-13 14:22 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gvim.desktop.diff (gvim.desktop.diff,242 bytes, patch)
2004-10-23 03:27 UTC, Sebastian Dröge
Details | Diff
gvim.desktop.diff (gvim.desktop.diff,884 bytes, patch)
2004-12-31 12:19 UTC, Joe McCann (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.