default opening of .txt files and opera .mht files

Using applications, configuring, problems
Post Reply
Message
Author
aarf

default opening of .txt files and opera .mht files

#1 Post by aarf »

if you set opera as the default to open opera.mht files, then when you click-open a .txt file it will also open in opera instead of where you want them i.e. in a text editor.
how to have your cake and eat it too? any clues?

User avatar
jrb
Posts: 1536
Joined: Tue 11 Dec 2007, 19:56
Location: Smithers, BC, Canada

#2 Post by jrb »

Hi aarf,
I setup a new MIME type, /root/Choices/MIME-types/text_mht containing:

Code: Select all

#! /bin/sh
exec opera "$1"
and then added:

Code: Select all

text/mht:*.mht
to the end of /usr/share/mime/glob

Seems to work alright. Have attached it as .pet

Thanks for calling this to my attention, J
Attachments
text_mht.pet
Open .mht files in Opera
(469 Bytes) Downloaded 320 times

aarf

#3 Post by aarf »

hi jrb,
at quick look
installed the pet but cant confirm any difference from previous,
.txt opening action is still linked to .mht action and vise-versa. and then changing one, changes the other as well. reboot still same.
late now, i'll look again tommorow.

User avatar
jrb
Posts: 1536
Joined: Tue 11 Dec 2007, 19:56
Location: Smithers, BC, Canada

#4 Post by jrb »

Sounds like you might have to undo any changes you made previously to get .mht files to open. Or start with new pup_save and /or /root/.opera.

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#5 Post by mikeb »

Set an unknown file type to open with geany as you did initially...should restore that...then apply the specific mime type addition.

I had exactly the same problem recently...I don't think this is how rox is intended to behave

mike

Post Reply