General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
Open URL from command line (multiple)
Posted by: Steve
Date: April 09, 2015 12:39AM

Hi,
I'm looking for a browser (other than IE, FF, Chrome, Opera, Safari) that can open multiple URL's (in tabs) via the command line. Is this possible with K-Mellon? It will happen via a script, so the script could update a cfg or profile file as well, if text based. Thanks.
Steve

Options: ReplyQuote
Re: Open URL from command line (multiple)
Posted by: siria
Date: April 09, 2015 07:07AM

Certainly possible one way or the other, with the help of your script and possibly a special profile.
And perhaps a little KM macro if needed (or not), but may need some fiddling. Or perhaps a bat-file?

So far just not sure about the "if needed" part or what would be the simplest in general, Dorian will hopefully tell more...

Commandline options are here:
http://kmeleon.sourceforge.net/wiki/CommandLineOptions
So far that can open (single?) URLs or sessions.

But there is a new KM version underway (KM75) which handles some things differently than older ones, like how sessions are stored, or this "Load Tabs on Demand" thing...



Edited 1 time(s). Last edit at 04/09/2015 07:17AM by siria.

Options: ReplyQuote
Re: Open URL from command line (multiple)
Posted by: JujuLand
Date: April 09, 2015 08:24AM

Hi,

Here is what I think

1) create a profile to do that
2) Use a macro (in profile/macros) which opens with openintab() all your addresses, and which is launched at startup ( onInit ?)
3) If addresses are always the same, nothing more to do that launch k-meleon with -p option, else make a bat which creates the macro file with the needed addresses and which launches k-meleon with -p option.

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 3 time(s). Last edit at 04/09/2015 08:26AM by JujuLand.

Options: ReplyQuote
Re: Open URL from command line (multiple)
Posted by: siria
Date: April 09, 2015 09:27AM

The longer I think about it...
Just fire as many "k-m.exe URL" commands as you have URLs. If the browser is set to use tabs, they will all open inside the same window and same session.

Then again, jujulands idea is cool too. Hardcoded URLs inside the kmm itself, extremely easy to create and for you to manipulate!



Edited 2 time(s). Last edit at 04/09/2015 06:30PM by siria.

Options: ReplyQuote
Re: Open URL from command line (multiple)
Posted by: Steve
Date: April 10, 2015 03:06PM

Sira, that idea works perfectly and is very simple. For the record just need to set

Preferences->Browsing->Window Diversion->Open: URLs passed from external app->In a new tab

Then from the command line call it multiple times eg.

./k-meleon.exe "http://yahoo.com";
./k-meleon.exe "http://google.com";
etc

Thanks everyone for your help. This is the first time I've used K-Meleon and so far like it very much. Regards
Steve

Options: ReplyQuote
Re: Open URL from command line (multiple)
Posted by: siria
Date: April 11, 2015 09:50PM

Cool, glad all works fine for you now smiling smiley

And oops, had completely forgotten to consider that pref! After a few years you get so used to your own settings and forget they may not be default :cool: Glad you found it anyway, which really isn't easy, rather hard to find that one!

Options: ReplyQuote


K-Meleon forum is powered by Phorum.