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 25 Oct 2014, 07:34
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 Posts_count  
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
Sub_title: .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_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  201 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_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: 8367

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:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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