Wilders Security Forums  

Go Back   Wilders Security Forums > Software, Hardware and General Services > all things UNIX
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread
  #1  
Old December 10th, 2009, 01:25 PM
Ocky's Avatar
Ocky Ocky is offline
Very Frequent Poster
 
Join Date: May 2006
Location: George, S.Africa
Posts: 2,538
Default Open saved .mht web archive files in Opera by default.

Whilst it is well known that Opera natively supports files of the .mht (web archive) variety, there is a small problem.
To date none of the Ubuntus I have used were able to recognise the mime type out of the box - clicking on a saved .mht file would always open it in gedit. Changing the behaviour via Properties>Open With seems to work but then all text files also open with Opera which is no good.
So the only solution is to create a new mime type with the Assogiate (File Types Editor) program available in the repositories. Here are some screenshots to illustrate what needs to be filled in.

Name:  File Types Editor.jpg
Views: 117
Size:  63.3 KB Name:  Assogiate General.jpg
Views: 115
Size:  35.1 KB

Name:  Assogiate Related Types.jpg
Views: 116
Size:  24.9 KB Name:  Assogiate File Names.jpg
Views: 118
Size:  22.3 KB

Name:  Assogiate File Contents.jpg
Views: 120
Size:  38.6 KB

To make it easier to copy the strings in File Contents section, I will reproduce them here:-

Value: From: <Saved by
Value: Content-Type: multipart/related;
Value: boundary="----=_NextPart_
Value: <!DOCTYPE HTML PUBLIC "-//W3C//DTD

(Type = String)

The XML elements section remains as is i.e. nothing to fill in.

I did touch on this a while ago, but didn't go into detail.

Edit:- The 'default' in my heading is misleading. After doing the above you will need to r/click on a .mht file > Open With and select Opera. All .mht files will then open
with Opera.
__________________
Ubuntu Kubuntu Xubuntu Scientific Linux

Last edited by Ocky : December 13th, 2009 at 01:41 AM.
 

Wilders Security Forums > Software, Hardware and General Services > all things UNIX « Previous Thread | Next Thread »

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 08:54 PM.


Powered by vBulletin® Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2002 - 2013, Wilders Security Forums