General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
K-Meleon-1.5.3-Gecko1.9.1 MIME Types Editor
Posted by: n301
Date: January 29, 2010 04:06AM

Is there a way to enable the MIME Types settings in this edition ?
MIME Types configuration via the Edit menu seems to be disabled so I'm wondering if there's a different way around this.

Very nice build and the efforts to introduce Gecko 1.9 are greatly appreciated smiling smiley



Edited 1 time(s). Last edit at 01/29/2010 11:43PM by n301.

Options: ReplyQuote
Re: K-Meleon-1.5.3-Gecko1.9.1 MIME Types Editor
Posted by: Fred
Date: January 29, 2010 09:36AM

The mimetypes editor is not yet integrated in the 1.9 browser chrome.
But it should be possible for you to create a mimetypes.rdf file
as you want it in the current official 1.5.3 browser, using
the mimetypes editor there.
Look for the file mimetypes.rdf in the browser profile of the
official version, and copy and paste this file into the profile
of the 1.9 gecko browser, which should be by default inside the
K-Meleon main folder fo the 1.9 version. Simply look there
for the already existing file mimetypes.rdf, and replace it
with the mimetypes.rdf, that you copied from the 1.8 version,
or rename the old one first to for example mimetypes.rdf-old.

Fred

Options: ReplyQuote
Re: K-Meleon-1.5.3-Gecko1.9.1 MIME Types Editor
Posted by: guenter
Date: January 29, 2010 11:54AM

@n301

You can try whether the attachment works for this K-Meleon version.
I fixed it to work with K-Meleons, but I will not support it.




Quote
Fred
The mimetypes editor is not yet integrated in the 1.9 browser chrome.

A stand alone MimeTypes editor will probably never be included in K-Meleon 1.6 versions by default. Mtypes version 0.3 was made up from Mozilla 1.7.12 code for K-Meleon 0.9.12. It was later updated (by alain & kko) but it does not play well with the mime types editor shipped in K-Meleon Prefs.
As a result kko and I have decided to abandon it.

When the move to GRE 1.9 started, Mtypes was also found incompatible.

p.s. Any person that wants can feel free to take & fix Mtypes.

      chrome:displayName="K-Meleon 1.0 Mimetype Editor 0.5.1"
      chrome:author="Based on Mozilla 1.7.12 code,Inspired by Jordan Callicoat, guenter"

is abandonware.



Edited 1 time(s). Last edit at 01/29/2010 02:14PM by guenter.

Attachments: rvjmimedit.7z (26.7 KB)  
Options: ReplyQuote
Re: K-Meleon-1.5.3-Gecko1.9.1 MIME Types Editor
Posted by: Fred
Date: January 29, 2010 06:17PM

Thank you Guenter, the extension is still usable.

@ n301

You can try to add the mimetypes editor.
Put rvjmimeedit.jar and rvjmimeedit.manifest into the chrome folder.
Put rvjmimeedit.kmm into the folder macros in the main K-Meleon folder
and remove mtypes.kmm .
Then try to open the mimetypes editor in Edit.
For the path I would use double backslashes and apostrophes, for example
"C:\\Program Files\\Real\\RealPlayer\\realplay.exe"
If the window should not show the correct entry, it would
still be saved in mimetypes.rdf in the profile, and show up
correctly later.

Note: In Linux this would probably only work with installed Windows
apps inside the .wine configuration folder, because most Linux
apps would probably not be found. It should work for realplay.exe
or winamp.exe, or if you succeeded to install Windows Media Player.

Fred

Options: ReplyQuote
Re: K-Meleon-1.5.3-Gecko1.9.1 MIME Types Editor
Posted by: JujuLand
Date: January 29, 2010 08:18PM

Quote
Fred
Note: In Linux this would probably only work with installed Windows
apps inside the .wine configuration folder, because most Linux
apps would probably not be found. It should work for realplay.exe
or winamp.exe, or if you succeeded to install Windows Media Player.

No, it works with Linux applications, but there is a problem for Linux programs with Windows path used by K-Meleon. That's the reason of my extension Win2Tux. As it's not possible to correct the path before using programs defined in mimetypes, my extension corrects path, and after, using extensions instead of mimetypes, opens the program needed.

Linux program path are like this:

Z:\usr\bin\thunderbird

A lot of file types are concerned, and can be opened in Linux programs.

Another way, but it needs some more functions in macros.exe : win2tux() and tux2win(), ought to be, after converting paths, to use programs such gnome-open, kmfclient or exo-open (depending of the system used).

Here is the preview.cmd I use to open presentations in KMES setups:

@echo off
if exist z:\usr\bin\gnome-open goto gnome-open
if exist z:\usr\bin\kfmclient goto kfmclient
if exist z:\usr\bin\exo-open goto exo-open
goto fin
:gnome-open
z:\usr\bin\gnome-open "%1"
goto fin
:kfmclient
z:\usr\bin\kfmclient exec "%1"
goto fin
:exo-open
z:\usr\bin\exo-open "%1"
:fin

I'm not sure that it allows to open all the filetypes, but there will be no more necessary to add ext files in the config of win2tux.

For the sample you use of media files, I think it's a pity to use windows programs, as there are a lot of programs which can handle these filetypes. More, they have the great advantage to be line commands (mplayer for example)

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc





Edited 1 time(s). Last edit at 01/29/2010 08:19PM by JujuLand.

Options: ReplyQuote
Re: K-Meleon-1.5.3-Gecko1.9.1 MIME Types Editor
Posted by: n301
Date: January 29, 2010 11:42PM

Fred and Guenter thank you for your help and suggestions smiling smiley

The MIME Types Preferences menu is now working but I'm having some trouble getting the MMS protocol to launch properly with Windows Media Player.

With K-Meleon-1.5.3-Gecko1.8 all mms media links launch normally with the relevant message box indicating that it will handle mms with the correct application (wmplayer.exe)

Any help as to how I can achieve that correctly using the MIME types menu is gratefully appreciated.

I have noticed that when I open the MIME types menu of K-Meleon-1.5.3-Gecko1.8, it lists several file types already whereas the menu for K-Meleon-1.5.3-Gecko1.9.1 is empty. I'm not sure if that's related to the information shown on mimeTypes.rdf or not.

Thanks again for your assistance.

n301

Options: ReplyQuote
Re: K-Meleon-1.5.3-Gecko1.9.1 MIME Types Editor
Posted by: disrupted
Date: January 29, 2010 11:50PM

why don't you just copy the mimetypes.rdf file from your 1.5.3 profile folder to the fred's 1.9 profile folder.

Options: ReplyQuote
Re: K-Meleon-1.5.3-Gecko1.9.1 MIME Types Editor
Posted by: n301
Date: January 30, 2010 12:14AM

Hi disrupted,

I thought about that as well and tried a moment ago but unfortunately it didn't make any difference. I had a look at the about : plugins page too and it displays the correct information for the windows media player plugins it has detected. The strange thing is that it's choosing not to use them even though I have manually added the relevant entries in the MIME types menu for helper applications.



Edited 1 time(s). Last edit at 01/30/2010 12:15AM by n301.

Options: ReplyQuote
Re: K-Meleon-1.5.3-Gecko1.9.1 MIME Types Editor
Posted by: Fred
Date: January 30, 2010 05:20AM

If you have problems with the plugins, you can add
a right click link menu to open the link with your favourite
media players, as I do it in Linux. This will open the link
directly in the players, without a media plugin needed.
Simply create a file Mediaplayers.kmm with the following code,
between <code> and </code>, and save it with the ending .kmm,
not with the ending .kmm.txt to make it work correctly,
add it to the menu macros in the K-Meleon main folder and
restart the browser, and a right click menu for music links should
appear.
Note: As I do not know the location of the media players on
your computer, the paths to them have to be adapted by yourself,
and other media players can be added, using the same structure
as for the given ones. Always use double backslashes, and replace
only the path.

<code>

# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)

# ---------- Mediaplayers ----------------------------
#
# Dependencies : -
# Resources : -
# Preferences : -
#
# ----------------------------------------------------------------------



realplayer_play_url {
$realplay="\"c:\\RealOne\\realplay.exe\"";
exec($realplay.$LinkURL);
}
wmplayer_play_url {
$wmplayer="\"C:\\Program Files\\Windows Media Player\\wmplayer.exe\"";
exec($wmplayer .$LinkURL);
}
winamp_play_url {
$winamp="\"c:\\Winamp\\Winamp.exe\"";
exec($winamp .$LinkURL);
}
# ----- PRIVATE

_Mediaplayers_BuildMenu{
# Link Popup context menu
$__r1=_("Play in Realplayer");
$__m1=_("Play in WindowMediaPlayer");
$__w1=_("Play in Winamp");
setmenu(LinkOpenExternal,macro,$__r1,realplayer_play_url );
setmenu(LinkOpenExternal,macro,$__m1,wmplayer_play_url );
setmenu(LinkOpenExternal,macro,$__w1,winamp_play_url );
}

$OnInit=$OnInit."_Mediaplayers_BuildMenu;";

# -----------------------------------------------------------------------
$macroModules=$macroModules."Mediaplayers;";

</code>

I hope that you will succeed.

Fred

Options: ReplyQuote
Re: K-Meleon-1.5.3-Gecko1.9.1 MIME Types Editor
Posted by: guenter
Date: January 30, 2010 05:46AM

MimeType Editor for "K-Meleon Helper Applications" (not Plugins). smiling smiley

How does Your 1.5.3 play Media Player formats? Maybe via ActiveX plugin support?


Maybe try with disrupted ® WMP K-MELEON Plugin from his extension page,
or try with an equivalent Firefox plugin.

They are Mozilla plugins for all Browsers except IE & Chrome.

Plugins in K-Melon plugins folder are preferred. Put it there if necessary.

Else get an ActiveX Support plugin for the identical Firefox GRE.
If one exists. I have not checked whether it does.

It is GRE specific plugin! I have used/seen versions since GRE 1.7 (or earlier?).

It would be a XPI (a zip format). Get it, extract it, distribute its files to the corresponding KM folder, delete the 2 *.dat in components & restart browser.



Edited 1 time(s). Last edit at 01/30/2010 12:13PM by guenter.

Options: ReplyQuote
Re: K-Meleon-1.5.3-Gecko1.9.1 MIME Types Editor
Posted by: n301
Date: January 30, 2010 08:31PM

Hi again Fred and Guenter,

I can confirm it's not a problem with the plugins because I visited the Windows Media Player plugin test page on this link Mozilla Plugin Test and the video plays correctly.

I also created the Mediaplayers.kmm file according to your instructions Fred and the option to play in Windows Media Player works when I right click on the mms: link. I was just wondering though if there's a way to launch Windows Media Player simply by double clicking the link.

With K-Meleon-1.5.3-Gecko1.8 when I click on any mms protocol link, I receive a message box for an External Protocol Request telling me that an external application must be launched to handle mms: links and it shows me that the application it has selected to use is Windows Media Player. All I have to do is click the Launch Application button and the mms: link will start correctly. I'm not sure if this method involves an XPI but it's what happens both with K-Meleon-1.5.3-Gecko1.8 and FireFox when it comes to mms: links

Interestingly, I don't see any entry for mms: links when I check the MIME Types Menu for K-Meleon Helper Applications in K-Meleon-1.5.3-Gecko1.8 so I'm not sure what the right format should be when I try to add a New Type for the mms protocol manually.

I'm just providing an example of an mms: link for you to try as well with K-Meleon-1.5.3-Gecko1.9.1 to see if you're able to launch it successfully mms: protocol test

Thanks again for all the help you are providing.

n301



Edited 2 time(s). Last edit at 01/30/2010 08:43PM by n301.

Options: ReplyQuote
Re: K-Meleon-1.5.3-Gecko1.9.1 MIME Types Editor
Posted by: Fred
Date: January 30, 2010 09:30PM

Tried it for once in Windows, because I mostly use Linux.
It seems, that the Windows media plugin is found, and .asx files
are started correctly, because they have a defined ending .asx,
but not mms links, which do not have a particular ending.
I cannot say, if the k-meleon.exe does that or whatever may
be the reason.
If you only need mms to open, why not trying putting the
Mediaplayer.kmm extension, that I wrote into the folder macros
and open mms links by right click. The WMPlayer location should be
correct, if you have the default installation path.

Fred

Options: ReplyQuote
Re: K-Meleon-1.5.3-Gecko1.9.1 MIME Types Editor
Posted by: n301
Date: February 01, 2010 11:56PM

To my surprise I have noticed that the problem with MIME Type helper applications in this build of K-Meleon with the Gecko 1.9.1 engine isn't just limited to the mms: protocol. Other links that require helper applications such as links that correspond to peer to peer programs eg. TVAnts, Sopcast or StreamTorrent, aren't handled properly either with this K-Meleon build whereas the same version 1.5.3 but with Gecko 1.8.1 identifies all the helper applications and handles all the links without any problems.

Any ideas as to how this difference in behaviour between these two versions of the same browser can be corrected are most welcome smiling smiley

Many thanks,

n301



Edited 1 time(s). Last edit at 02/02/2010 12:01AM by n301.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.