Difficult one. How to associate .mht web archive files with Opera - CentOS 5 ?

Discussion in 'all things UNIX' started by Ocky, Jan 15, 2009.

Thread Status:
Not open for further replies.
  1. Ocky

    Ocky Registered Member

    Joined:
    May 6, 2006
    Posts:
    2,713
    Location:
    George, S.Africa
    In Ubuntu there is a nifty program in the repos. by the name of Assogiate with
    which one can create a mime type for .mht files and even select a suitable
    icon (plus of course other types of associations).

    There does not seem to be a similar program for CentOS, so that I am stuck
    with having to right click on .mht files and selecting 'Open with Opera'
    - otherwise they will open in gedit as the file type .mht is recognised as
    text/plain.

    Maybe there is some manual way of fixing this - hopefully not too complicated.

    Virtual bottle of very best Champers to first problem solver. :D :argh:
     
  2. Mrkvonic

    Mrkvonic Linux Systems Expert

    Joined:
    May 9, 2005
    Posts:
    10,224
  3. Ocky

    Ocky Registered Member

    Joined:
    May 6, 2006
    Posts:
    2,713
    Location:
    George, S.Africa
    That's my point. You can't simply r/click>Properties>Open with Opera.
    sure it will open with Opera, but then so will all the txt files, so then I have to
    repeat the process and associate them with gedit - etc.

    OK, I will try one or the other solutions you point to.
    Thanks.
     
  4. Mrkvonic

    Mrkvonic Linux Systems Expert

    Joined:
    May 9, 2005
    Posts:
    10,224
  5. Ocky

    Ocky Registered Member

    Joined:
    May 6, 2006
    Posts:
    2,713
    Location:
    George, S.Africa
  6. Mrkvonic

    Mrkvonic Linux Systems Expert

    Joined:
    May 9, 2005
    Posts:
    10,224
    Looks ugly. I'll play with it a little.
    See what comes up ...

    Any source where I might find mht files?

    Mrk
     
  7. Ocky

    Ocky Registered Member

    Joined:
    May 6, 2006
    Posts:
    2,713
    Location:
    George, S.Africa
    OK, sorted out. I downloaded the rpm from http://michael.kuerschner.googlepages.com/linuxrpmpakete
    Wouldn't install in CentOS at first because of the repositories priorities
    protection I assigned to rpmforge, so I temporarily disabled the base and
    other repos. leaving only rpmforge. This way I had no trouble installing all
    the missing dependencies using yum localinstall. (I also needed to import
    the key).
    Now my text files open in gedit and the web archive (.mht) files open in
    Opera just by clicking on them.... See Screenshot.

    PS. You can use IE to save a web page as web archive (.mht)
     

    Attached Files:

  8. Mrkvonic

    Mrkvonic Linux Systems Expert

    Joined:
    May 9, 2005
    Posts:
    10,224
    In other words, Bob's your uncle!
    Mrk
     
  9. Ocky

    Ocky Registered Member

    Joined:
    May 6, 2006
    Posts:
    2,713
    Location:
    George, S.Africa
    How right you are !
    My real uncle Bob, a retired colonel, resides in Young Harris, GA. :argh: :)
     
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.