Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78394 - Gvim should use fdo-mime eclass
Summary: Gvim should use fdo-mime eclass
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-17 11:31 UTC by Joe McCann (RETIRED)
Modified: 2005-01-19 11:49 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joe McCann (RETIRED) gentoo-dev 2005-01-17 11:31:21 UTC
This is my fault for not mentioning it in bug 68622. The fdo-mime eclass is a very simple eclass that provides functions to update the mime database based .desktop files. Using this eclass allows all ebuilds that add/alter a .desktop file to have their changes put into place once the merge is complete. The functions should probably be added in a pkg_postinst() and pkg_postrm() function, so  the database is updated after install and removal.

Short example of why to use this:

User merges gVim, then clicks on text file via nautilus.
File opens in gVim because mime database has been updated to include it as a handler for text files.

User removes gvim, clicks on a text file
file doesn't try and open with gvim because database has been updated to reflect its removal. 

Thanks
Comment 1 Ciaran McCreesh 2005-01-19 11:49:27 UTC
I added this to postinst and postrm:

       # Update fdo mime stuff, bug #78394
       if [[ "${MY_PN}" == "gvim" ]] ; then
               fdo-mime_mime_database_update
       fi

Please reopen if this isn't right...