LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-20-2005, 03:52 PM   #1
madiyaan
Member
 
Registered: Apr 2003
Posts: 69

Rep: Reputation: 15
Nautilus Annoying Warning box


I have a few CD's that have *.wmv files. I have installed mplayer and the corresponding wmv9 codecs on my Fedora Core 4 box to play those files. When I right click on that file using nautilus and click on Open with Gmplayer, it works fine. However, when I double click the file I get a large warning dialog box with only one option (cancel). The dialog box reads:

[BEGIN DIALOG BOX]

Cannot open ABC.wmv

The filename "ABC.wmv" indicates that this file is of type "Microsoft WMV Video". The contents of the file indicate that the file is of type "Microsoft ASF video". If you open this file, the file might present a security risk to your system.

Do not open the file unless you created the file yourself, or recieved the file from a trusted source. To open the file, rename the file to the correct extension for "Microsoft ASF video", then open the file normally. Alternatively, use the Open With menu to choose a specific application for the file.

[END DIALOG BOX]

This is highly annoying since I can't rename the file (it's on a CD) and I have to go through right clicking and opening every time I want to see the video. Does anyone know how to fix this?

Keywords: mimetype, wmv, asf, nautilus

Thanks,
Madiyaan
 
Old 09-29-2005, 09:03 AM   #2
jamesnine
LQ Newbie
 
Registered: Sep 2005
Posts: 1

Rep: Reputation: 0
Here is a solution that worked for me (I am using Fedora Core 4):

Using terminal:
1) log in as root
2) cd /usr/share/mime/packages
3) edit (I use vi) the file "freedesktop.org.xml"
4) look for the following line:

<mime-type type="video/x-ms-asf">
<comment>Microsoft ASF video</comment>

5) scroll down a bit to the bottom of that mime-type, look for the following line:

<glob pattern="*.asf"/>
<glob pattern="*.asx"/>
<magic priority="50">

6) after those lines, add: <alias type="video/x-ms-wmv"/>

i.e. it should look like this:

<glob pattern="*.asf"/>
<glob pattern="*.asx"/>
<alias type="video/x-ms-wmv"/>
<magic priority="50">

7) save the file, run the following command at the prompt:

# update-mime-database /usr/share/mime

8) You're done. That should work. I know there are other ways to do this, but this way worked for me.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gnome Nautilus compile failed in [nautilus-printer.lo] chunlee Linux - Software 5 01-24-2005 04:57 PM
Nautilus warning messages !! DipeshKhakhkhar Linux - Software 1 11-18-2004 11:14 AM
XP Box won't connect to internet thru RH9 Box (firewall/dhcpd), it can only ping fire Rhapsodic Linux - Networking 4 07-10-2004 03:02 PM
Annoying white box in KDE System Tray Jose Muņiz Fedora 5 06-07-2004 10:01 PM
Warning: this post contains annoying noob questions shmoo28 Linux - Software 5 10-25-2001 10:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration