After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 154893 - mime-info for ASF and WMV needs clearing up can't use WMV files properly under gnome
mime-info for ASF and WMV needs clearing up can't use WMV files properly unde...
Status: RESOLVED NOTGNOME
Product: gnome-vfs
Classification: Deprecated
Component: MIME and file/program mapping
2.8.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-vfs maintainers
gnome-vfs maintainers
Depends on:
Blocks:
 
 
Reported: 2004-10-08 13:09 UTC by Adam Hewgill
Modified: 2006-06-14 16:51 UTC
See Also:
GNOME target: ---
GNOME version: 2.7/2.8



Description Adam Hewgill 2004-10-08 13:09:42 UTC
Description of Problem:
In /usr/share/mime/packages/freedesktop.org.xml is contained the file
associations for varios types.
Also included are the extensions and in some cases magic number
support.
ASF has a magic number and extension support but WMV does not (it is
exactly the same as ASF)
but this is not the problem.
Nautilus uses this data when working with files and is causing a problem
with WMV files (ie it thinks
its and ASF with an incorrect extension and won't play it using the
association to mplayer I setup)
When you initially open nautilus and browse to the wmv is looks fine but
when you click on it, it must
read the magic number because it immediatly changes the icon to an ASF
icon which is incorrect.

Steps to reproduce the problem:
1. Download WMV file
2. Open File Browser
3. Browser to WMV file (note Icon)
4. Single Click on WMV file (note Icon)
5. Double Click on WMV file

Actual Results:
The WMV file changes to an ASF file to gnome

Expected Results:
WMV file should be a WMV file

How often does this happen?
All the time

Additional Information:
-- Fix information
I spent a great deal of time trying to get this to work and finally did
in a hackish sort of way.
Firstly I added the correct magic number info to the x-ms-wmv entry in 
/usr/share/mime/packages/freedesktop.org.xml and ran
update-mime-database /usr/share/mime
This correctly installed my changes however this did not fix the problem
(this is the bug right here)
I went back to /usr/share/mime/magic and moved WMV above ASF in the list
and it now works but 
the issue is reversed.  ASF movies change to WMV movies and won't play.

The fix should be that nautilus looks at both the glob info and the
magic info to make the correct 
decision since togeather they are very correct but appart issues can
occur like same extention 
different magic or visa-versa.

:o)
Comment 1 Dennis Möhlmann 2004-11-27 15:41:17 UTC
The question is: if I rename and burn my wmv homevideos as asf files, can I
still watch them once this annoying issue gets fixed? Or will I have to do this
whole renaming thing once again just because Nautilus means to be smarter then me?

Just something to consider before fixing this bug without caring about already
inflicted damage.
Comment 2 Marco Pesenti Gritti 2004-12-10 16:30:55 UTC
Reported upstream

https://bugs.freedesktop.org/show_bug.cgi?id=2051
Comment 3 Stanislav Brabec 2005-03-29 16:02:21 UTC
Added patch to upstream Bugzilla entry. It fixes at least some WMV files. Please
test (tested with shared-mime-info-0.16).

GNOME level work-around: see bug 154074