Red Hat Bugzilla – Bug 434929
.vym files are opening with archive manager
Last modified: 2008-06-26 04:33:49 EDT
Description of problem:
on EL5, .vym files are by default opened by archive manager.
Hmm. On Fedora 8, they open in Wine. Not sure this is a vym bug. How do we
package the addition of a mime type to Nautilus, et. al.?
Maybe it is because it is zip data:
$ file foo.vym
foo.vym: Zip archive data, at least v2.0 to extract
To create a new mimetype I guess one has to follow this procedure:
Since it's zip data, I don't see how we'd reliably know whether a given file was
a vym file or not, save for the extension. I could add a MimeType entry to the
.desktop file for zip files, so it would appear in the Other Applications dialog.
Would that be sufficient?
(In reply to comment #3)
> Would that be sufficient?
Is there any way to associate file type by extension?
Only by mimetype AFAIK. Taking xmms as an example, the only refence to file
type is in the .desktop, which lists the mime types to be associated with xmms.
I could to the same for zip and vym, but it's be as one choice, not a default,
since zip is openable by name things, such as gnome-file-roller, etc.
I just found something out: The vim-vimoutliner package uses a file
(/usr/share/mime/packages/vimoutliner.xml) to define its own mimetype
(text/x-vimoutliner) and in this file it is also possible to specify a filename
pattern. Therefore I guess you could do this for vym, too. I am currently
working on something else, but I will do some more research later unless I
forget it. ;-)
Looks like I'd essentially copy the .zip one, and use the .vym extenstion.
(In reply to comment #7)
> Looks like I'd essentially copy the .zip one, and use the .vym extenstion.
Maybe you should add <sub-class-of type="application/zip"/> then. Other zipped
xml mimetypes do this, too, e.g.
Hmm. Didn't know about this:
It worked. Build for rawhide failed due to 450310, which should be fixed
tomorrow. I'll keep the builds moving through and let you know when it's built
(In reply to comment #9)
> Hmm. Didn't know about this:
This is only about how you make applications open a specific mimetype. What is
missing is how you assign mimetypes to a file, e.g. for all files with a certain
> It worked. Build for rawhide failed due to 450310, which should be fixed
> tomorrow. I'll keep the builds moving through and let you know when it's built
> for EPEL.
xdg-open Foo.vym with a local build of rawhide does still open the file with an
archive manager. You still need to add an file that creates the link between
file extension and mimetype.
Ah. Updated to include that, xdg-open works. Can't commit to cvs, though,
waiting out the DNS issue.
Built in rawhide.
vym-1.10.0-4.fc9 has been submitted as an update for Fedora 9
vym-1.10.0-4.fc8 has been submitted as an update for Fedora 8
Built for EL-5 as well.
vym-1.10.0-4.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.
vym-1.10.0-4.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report.