The Motorola Development Community


Go Back   MotorolaFans.com Forums > Developments > Development
Notices

Development Hacking, development, scripts etc

Reply

Moderator

eakrin's Avatar

Join Date: Jul 2005
Posts: 833
Thanks: 25
Thanked 219 Times in 80 Posts
Location: Thailand

Send a message via ICQ to eakrin Send a message via MSN to eakrin Send a message via Yahoo to eakrin Send a message via Skype™ to eakrin
Quote  
#1
02-15-2008
Default Mime in mpkg package file.

Does anybody know or heard about mime presetting in mpkg file before?

MIME is a application association file like .pkg open with mpkg installer, .mp3 open with RealPlayer etc.

I try to update new mpkg installer with presetting mime feature. but cannot find syntax for setting mime in *.desktop file. look like I found it long time ago but I can't remember where it is.
__________________
Visit my Blog here.http://my.opera.com/eakrin
Reply With Quote


User Information
Current Phone: E6 A1200 A780
Firmware: Lamborghini 09P
Location: Thailand

eakrin is offlineReport Post
MotoFans JUNR

behdad's Avatar

Join Date: Jan 2008
Posts: 33
Thanks: 3
Thanked 8 Times in 4 Posts
Location: Tehran

Send a message via Yahoo to behdad
Quote  
#2
02-15-2008
Default /etc

Quote:
Originally Posted by eakrin View Post
Does anybody know or heard about mime presetting in mpkg file before?

MIME is a application association file like .pkg open with mpkg installer, .mp3 open with RealPlayer etc.

I try to update new mpkg installer with presetting mime feature. but cannot find syntax for setting mime in *.desktop file. look like I found it long time ago but I can't remember where it is.
i think you can fine sth in "/etc/mime.types"
if not! i have no idea!!
__________________
MOTOMING A1200r
2GB MicroSD
Black Ming Theme!
Fedora8 User
Firefox User
Reply With Quote


User Information
Location: Tehran

behdad is offlineReport Post
Moderator

eakrin's Avatar

Join Date: Jul 2005
Posts: 833
Thanks: 25
Thanked 219 Times in 80 Posts
Location: Thailand

Send a message via ICQ to eakrin Send a message via MSN to eakrin Send a message via Yahoo to eakrin Send a message via Skype™ to eakrin
Quote  
#3
02-15-2008
Default

yeah. /etc/mime.type is a default mime. but I need a syntax for destop file mpkg installation. like skin installer set pskn file to open with Skin installer. when install by mpkg it set pskn file to open with skin installer. no need to openwith...

look like it's in E680i/A780 f/w
LOL
__________________
Visit my Blog here.http://my.opera.com/eakrin
Reply With Quote


User Information
Current Phone: E6 A1200 A780
Firmware: Lamborghini 09P
Location: Thailand

eakrin is offlineReport Post
Moto Fans SENR

Join Date: Sep 2005
Posts: 1,091
Thanks: 0
Thanked 132 Times in 67 Posts
Location: Jakarta, Indonesia

Quote  
#4
02-15-2008
Default

/usr/SYSqtapp/opera/opera.desktop:

[Desktop Entry]
BigIcon=opera_32x32.gif
Comment=The Opera web browser
Exec=launcher
Icon=opera_22x22.gif
MimeType=text/html;text/wml
Name=Opera
OSVersion=1.0
Type=Application
Reply With Quote


User Information
Current Phone: Motorola E680i and A1200
Location: Jakarta, Indonesia

blackhawk is offlineReport Post
Moderator

eakrin's Avatar

Join Date: Jul 2005
Posts: 833
Thanks: 25
Thanked 219 Times in 80 Posts
Location: Thailand

Send a message via ICQ to eakrin Send a message via MSN to eakrin Send a message via Yahoo to eakrin Send a message via Skype™ to eakrin
Quote  
#5
02-16-2008
Default

Thanks blackhawk!

This is what i want.

Quote:
MimeType=text/html;text/wml
__________________
Visit my Blog here.http://my.opera.com/eakrin
Reply With Quote


User Information
Current Phone: E6 A1200 A780
Firmware: Lamborghini 09P
Location: Thailand

eakrin is offlineReport Post
Moto Fans SENR

Join Date: Sep 2005
Posts: 1,091
Thanks: 0
Thanked 132 Times in 67 Posts
Location: Jakarta, Indonesia

Quote  
#6
02-16-2008
Default

You're welcome
__________________
eXMMS and Rockbox running on E680, E680i, E680g, A780, A1200 and ROKR E6
Reply With Quote


User Information
Current Phone: Motorola E680i and A1200
Location: Jakarta, Indonesia

blackhawk is offlineReport Post
MotoFans JUNR

Join Date: Nov 2006
Posts: 74
Thanks: 0
Thanked 5 Times in 5 Posts
Location: Jakarta

Send a message via MSN to keaglez Send a message via Yahoo to keaglez
Quote  
#7
02-17-2008
Default

Damn, i never tought thats easy..! I used to modify the mime.types, searching for my apps uid, then edit the UserMime.... Thanks blackhawk and eakrin...
Reply With Quote


User Information
Current Phone: Motorola ROKR E2
Firmware: Modified Katze3
Location: Jakarta

keaglez is offlineReport Post
Moderator

eakrin's Avatar

Join Date: Jul 2005
Posts: 833
Thanks: 25
Thanked 219 Times in 80 Posts
Location: Thailand

Send a message via ICQ to eakrin Send a message via MSN to eakrin Send a message via Yahoo to eakrin Send a message via Skype™ to eakrin
Quote  
#8
02-26-2008
Default

It's not easy. Mime in .desktop file is a info for installer to add Mime into UserMime file for system.
__________________
Visit my Blog here.http://my.opera.com/eakrin
Reply With Quote


User Information
Current Phone: E6 A1200 A780
Firmware: Lamborghini 09P
Location: Thailand

eakrin is offlineReport Post
Reply

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:29 PM. Search Engine Friendly URLs by vBSEO 3.2.0 Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd. VBulletin Skin by ForumMonkeys.