Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 20 Dec 2014, 04:56
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
default opening of .txt files and opera .mht files
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
aarf

Joined: 30 Aug 2007
Posts: 3620
Location: around the bend

PostPosted: Sun 26 Jul 2009, 09:41    Post subject:  default opening of .txt files and opera .mht files
Subject description: .mht is the combination images/html saved file from opera
 

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?

_________________

ASUS EeePC Flare series 1025C 4x Intel Atom N2800 @ 1.86GHz RAM 2063MB 800x600p ATA 320G
_-¤-_

<º))))><.¸¸.•´¯`•.#.•´¯`•.¸¸. ><((((º>
Back to top
View user's profile Send private message Visit poster's website 
jrb


Joined: 11 Dec 2007
Posts: 1040
Location: Smithers, BC, Canada

PostPosted: Tue 28 Jul 2009, 12:25    Post subject:  

Hi aarf,
I setup a new MIME type, /root/Choices/MIME-types/text_mht containing:
Code:
#! /bin/sh
exec opera "$1"

and then added:
Code:
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
text_mht.pet
Description  Open .mht files in Opera
pet

 Download 
Filename  text_mht.pet 
Filesize  469 Bytes 
Downloaded  203 Time(s) 
Back to top
View user's profile Send private message 
aarf

Joined: 30 Aug 2007
Posts: 3620
Location: around the bend

PostPosted: Tue 28 Jul 2009, 13:15    Post subject:  

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.

_________________

ASUS EeePC Flare series 1025C 4x Intel Atom N2800 @ 1.86GHz RAM 2063MB 800x600p ATA 320G
_-¤-_

<º))))><.¸¸.•´¯`•.#.•´¯`•.¸¸. ><((((º>
Back to top
View user's profile Send private message Visit poster's website 
jrb


Joined: 11 Dec 2007
Posts: 1040
Location: Smithers, BC, Canada

PostPosted: Tue 28 Jul 2009, 16:46    Post subject:  

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.
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 9032

PostPosted: Tue 28 Jul 2009, 17:08    Post subject:  

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
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0470s ][ Queries: 12 (0.0036s) ][ GZIP on ]