Bug 434929 - .vym files are opening with archive manager
Summary: .vym files are opening with archive manager
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: vym
Version: el5
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-02-26 11:51 UTC by Marek Mahut
Modified: 2008-06-26 08:33 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-06-12 19:03:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Marek Mahut 2008-02-26 11:51:29 UTC
Description of problem:

on EL5, .vym files are by default opened by archive manager.

Comment 1 Gwyn Ciesla 2008-02-26 14:33:11 UTC
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.?

Comment 2 Till Maas 2008-03-12 22:03:22 UTC
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:
http://www.iana.org/cgi-bin/mediatypes.pl

Comment 3 Gwyn Ciesla 2008-04-09 15:41:47 UTC
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?

Comment 4 Marek Mahut 2008-04-09 16:01:26 UTC
(In reply to comment #3)
> Would that be sufficient?

Is there any way to associate file type by extension? 



Comment 5 Gwyn Ciesla 2008-04-09 16:09:28 UTC
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.

Comment 6 Till Maas 2008-05-29 17:50:08 UTC
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. ;-)

Comment 7 Gwyn Ciesla 2008-05-29 17:56:23 UTC
Looks like I'd essentially copy the .zip one, and use the .vym extenstion.

Comment 8 Till Maas 2008-05-29 18:40:53 UTC
(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.
/usr/share/mime/application/vnd.oasis.opendocument.chart.xml



Comment 9 Gwyn Ciesla 2008-06-10 18:50:44 UTC
Hmm. Didn't know about this:
http://fedoraproject.org/wiki/NewMIMESystem

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.

Comment 10 Till Maas 2008-06-10 23:20:41 UTC
(In reply to comment #9)
> Hmm. Didn't know about this:
> http://fedoraproject.org/wiki/NewMIMESystem

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
suffix.

> 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.

Comment 11 Gwyn Ciesla 2008-06-11 12:36:49 UTC
Ah.  Updated to include that, xdg-open works.  Can't commit to cvs, though,
waiting out the DNS issue.

Comment 12 Gwyn Ciesla 2008-06-12 13:57:05 UTC
Built in rawhide.

Comment 13 Fedora Update System 2008-06-12 18:58:20 UTC
vym-1.10.0-4.fc9 has been submitted as an update for Fedora 9

Comment 14 Fedora Update System 2008-06-12 18:59:48 UTC
vym-1.10.0-4.fc8 has been submitted as an update for Fedora 8

Comment 15 Gwyn Ciesla 2008-06-12 19:03:49 UTC
Built for EL-5 as well.

Comment 16 Fedora Update System 2008-06-26 08:31:56 UTC
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.

Comment 17 Fedora Update System 2008-06-26 08:33:49 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.