General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
How to set/prompt Kmeleon as default after install?
Posted by: giro1991
Date: June 11, 2019 02:56AM

My question is like the title implies, is there an easy way to do that?

A dialog would be cool, if not a makeshift solution would be to prompt the preferences window at first launch - one of the pages has a 'make k-meleon default browser' button which works well.

Any ideas?

Options: ReplyQuote
Re: How to set/prompt Kmeleon as default after install?
Posted by: JohnHell
Date: June 11, 2019 02:48PM

Quote
giro1991
My question is like the title implies, is there an easy way to do that?

A dialog would be cool, if not a makeshift solution would be to prompt the preferences window at first launch - one of the pages has a 'make k-meleon default browser' button which works well.

Any ideas?

If you use an official installer, not the portable 7z version, you should be able to do at install time.

Otherwise, or with the Goanna version (if it hasn't been removed), you could do this by going to the preference panel, Browsing (default pane view) and at the right side you have a button to do it.

Options: ReplyQuote
Re: How to set/prompt Kmeleon as default after install?
Posted by: giro1991
Date: June 17, 2019 03:59PM

Thanks JH
I use my own installer, ie. a repack.

I'm aware of the Preferences page, is it possible to prompt the user with this page upon first run?



Edited 1 time(s). Last edit at 06/17/2019 04:00PM by giro1991.

Options: ReplyQuote
Re: How to set/prompt Kmeleon as default after install?
Posted by: siria
Date: June 17, 2019 05:05PM

Quote
giro1991
I use my own installer, ie. a repack.
I'm aware of the Preferences page, is it possible to prompt the user with this page upon first run?

The URL of that pref window is: chrome://kmprefs/content/pref.xul?browsing
Open it with your installer somehow, or open KM with URL in commandline, example:
"C:\Program Files\K-Meleon\k-meleon.exe" chrome://kmprefs/content/pref.xul?browsing

Options: ReplyQuote
Re: How to set/prompt Kmeleon as default after install?
Posted by: JohnHell
Date: June 17, 2019 05:42PM

Quote
giro1991
Thanks JH
I use my own installer, ie. a repack.

I'm aware of the Preferences page, is it possible to prompt the user with this page upon first run?

Yeah, with a macro and readreg function:
http://kmeleonbrowser.org/wiki/MacroLanguage2


You could read the HKCR (HKEY_CLASSES_ROOT) for the html file and/or HTTP protocol Windows registry values and check if K-meleon is the default to open them, and run it at $OnStartup event global variable.

Options: ReplyQuote
Re: How to set/prompt Kmeleon as default after install?
Posted by: JohnHell
Date: June 17, 2019 09:39PM

Is not after install, but if you plan to deploy or just as a checker, a macro to check it:
http://kmeleonbrowser.org/forum/read.php?9,149478

Options: ReplyQuote
Re: How to set/prompt Kmeleon as default after install?
Posted by: adodupan
Date: June 19, 2019 03:39PM

Quote
giro1991
My question is like the title implies, is there an easy way to do that?

A dialog would be cool, if not a makeshift solution would be to prompt the preferences window at first launch - one of the pages has a 'make k-meleon default browser' button which works well.

Any ideas?

Find the last 1.8 build and look there.

Regards

Options: ReplyQuote
Re: How to set/prompt Kmeleon as default after install?
Posted by: giro1991
Date: June 23, 2019 11:23PM

Quote
JohnHell
Yeah, with a macro and readreg function:
http://kmeleonbrowser.org/wiki/MacroLanguage2


You could read the HKCR (HKEY_CLASSES_ROOT) for the html file and/or HTTP protocol Windows registry values and check if K-meleon is the default to open them, and run it at $OnStartup event global variable.

Can you kindly provide example script if not too much bother?
I assume I save it as .kmm and place it in macros folder?

cheers

Options: ReplyQuote
Re: How to set/prompt Kmeleon as default after install?
Posted by: JohnHell
Date: June 23, 2019 11:39PM

Read the other message above, I posted a macro extension.

Options: ReplyQuote
Re: How to set/prompt Kmeleon as default after install?
Posted by: giro1991
Date: July 09, 2019 09:18AM

Thankyou Both siria and JohnHell. I missed your posts, both solutions work great.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.