Bugs :  K-Meleon Web Browser Forum
You can talk about issues with k-meleon here.  
Problem setting homepage
Posted by: marcoas
Date: January 15, 2016 04:01PM

(English translated by Google)

I'm setting up KM 75.1, and I can not leave as homepage a test.html file that is inside the folder K-Meleon

For instance:
1. What is the correct PATH to the file, if it is in the same folder k-meleon.exe?

2. And what would be if I let into one of the folders of K-Meleon, as Browser, Local, or Skins?

Thank you



(Spanish)

Estoy configurando KM75.1, y no puedo dejar como pagina de inicio, un archivo TEST.HTML que esta dentro de la carpeta de k-meleon

Por ejemplo:
1. ¿Cual es el PATH correcto para este archivo, si está en la misma carpeta de k-meleon.exe?

2. ¿Y cual sería si lo dejo dentro de alguna de las carpetas de k-meleon, como Browser, Locales, o Skins ?

Gracias

Options: ReplyQuote
Re: Problem setting homepage
Posted by: JamesD
Date: January 15, 2016 04:40PM

To select a html file for your homepage, please try this:

Go to [EDIT > PREFERENCES], or press F2, > GENERAL.

About half way down the page is a section labeled 'At Startup'.

If not already selected, select 'Load homepage'.

On the next line click on 'BROWSE' and select the file that you wish. If your K-Meleon is in C:\\Program Files\kmeleon, then start there. When you find the file that you wish to load, click 'Select'.

Options: ReplyQuote
Re: Problem setting homepage
Posted by: JohnHell
Date: January 15, 2016 04:44PM

Desde las preferencias, usa el botón que hay al lado de la dirección de la página de inicio para buscar el archivo, eso lo hará todo automático.

Comprueba bien las opciones, porque, a pesar de poner una página de inicio, puedes también indicar que se cargue una ventana en blanco.


Explicándolo en más profundidad, todas las direcciones locales empiezan por file:///

No puedes poner un nombre de archivo directamente.

Por ejemplo, si tienes K-meleon en C:\K-meleon y quieres utilizar de página de inicio test.html, dentro de esa carpeta, sería:

file:///c:/K-meleon/test.html

test.html no valdría porque K-meleon entendería que tiene que buscar http://test.html.


-- briefing in english.

The Start menu file can be located through the preferences panel and using the browse button.

Or what JamesD explained above while I was writting this confused smiley



Edited 1 time(s). Last edit at 01/15/2016 04:45PM by JohnHell.

Options: ReplyQuote
Re: Problem setting homepage
Posted by: marcoas
Date: January 15, 2016 06:45PM

(Spanish)
Primero gracias por responder
Pero eso no me sirve. No es lo que necesito.

Mi idea es entregar una version portable de KM pre configurada (sin plugins, sin menu, sin skins) extremadamente minimalista.
Para que los usuarios no puedan hacer (casi) nada, excepto usar la intranet.

Junto con esa version portable, yo queria poner un archivo HTML, que sirva de bienvenida, y tenga una minima guia de uso y configuracion

Dado que no pudo saber, en que carpeta los usuarios van a copiar a KM, mi intencion era usar algo como ...

user_pref("browser.startup.homepage", "file://test.html");

... en /browser/defaulta/profile/prefs.js

Pero necesito 'decir' que el PATH a ese archivo, es relativo al ejecutable de KM

¿Se entiende?




(English)
First thanks for replying
But that does not help me. It's not what I need.

My idea is to deliver a portable version of KM pre configured (no plugins, no menu, no skins) extremely minimalist.
So users can do (almost) anything except use the intranet.

Along with this portable version, I wanted to put an HTML file to serve as the welcome, and have a minimum configuration and usage guide

Since he could not know in which folder to copy users to KM, my intention was to use something like ...

user_pref ("browser.startup.homepage", "file: //test.html");

... In /browser/defaulta/profile/prefs.js

But I need to 'tell' the PATH to the file is relative to the executable KM

Do you understand?

Options: ReplyQuote
Re: Problem setting homepage
Posted by: siria
Date: January 15, 2016 06:55PM

file:///

resource:///test.html

(=???????/k-meleon/browser/test.html)

Do you know the "kiosk mode"?



Edited 1 time(s). Last edit at 01/15/2016 06:57PM by siria.

Options: ReplyQuote
Re: Problem setting homepage
Posted by: marcoas
Date: January 15, 2016 09:55PM

Quote
siria

resource:///test.html

Don't work for me

I follow these steps

1. Download the portable version of KM75.1 from http://kmeleonbrowser.org/download.php

2. unzip

3. Go to the options (F2)

4. I put in home page: resource://readme.html
(Here comes a file with that name in the folder /browser)

5. Close and reopen KM

6. I see a blank page


Quote
siria

kiosk mode

With the same steps, if I run the command

k-meleon -webapp

I see the message "Could not create browser frame"



Edited 3 time(s). Last edit at 01/15/2016 10:02PM by marcoas.

Options: ReplyQuote
Re: Problem setting homepage
Posted by: siria
Date: January 15, 2016 10:14PM

3x ///
Quote
siria
resource:///test.html
Quote
marcoas
4. I put in home page: resource://readme.html

Oops, no, now I'm also getting a blank page, that's strange... :O

@forum:
anyone familiar with that webapp kiosk stuff? Me not :cool:
Only have noticed that frames are disabled out-of-box in current KM, but no idea if that has to do with that or what exactly should happen at all.



Edited 1 time(s). Last edit at 01/15/2016 10:18PM by siria.

Options: ReplyQuote
Re: Problem setting homepage
Posted by: siria
Date: January 15, 2016 10:28PM

Quote
marcoas
4. I put in home page: resource://readme.html

Oh great, relative links are broken in KM74/75.0/75.1 sad smiley

But works again in KM76:
http://kmeleonbrowser.org/forum/read.php?8,136880

Options: ReplyQuote
Re: Problem setting homepage
Posted by: marcoas
Date: January 15, 2016 10:34PM

sad smiley

Options: ReplyQuote
Re: Problem setting homepage
Posted by: siria
Date: January 15, 2016 11:16PM

Solution 1:
Use KM76 beta3 smiling smiley
It is also better for webapp kiosk mode (whatever that is :coolsmiling smiley
==> http://kmeleonbrowser.org/forum/read.php?8,136880

Solution 2:
Or KM1.5.4, or KM1.6beta26 :cool:

Solution 3:
Or a macro, but not sure if you allow macros in that 'minimalist' version?
Save text below as ...k-meleon/macros/homepagelocal.kmm
#--------------------------------------

$OnSetup=$OnSetup."homepagelocal;";

homepagelocal{
$_x=getfolder(RootFolder)."\\browser\\readme.html";
setpref(STRING,"browser.startup.homepage",$_x);
}

#---------------------------------------

Options: ReplyQuote
Re: Problem setting homepage
Posted by: adodupan
Date: January 17, 2016 10:33AM

If there missing 'resource', you can do something like this on startup,
paste this in error console:
Components.utils.import('resource://gre/modules/Services.jsm');
Components.utils.import('resource://gre/modules/FileUtils.jsm');
Services.io.getProtocolHandler('resource')
   .QueryInterface(Components.interfaces.nsIResProtocolHandler)
   .setSubstitution('root', Services.io.newFileURI(FileUtils.getFile('GreD', ['test.html'])));
then paste this in kmeleon's url bar:
resource://root/test.html

Options: ReplyQuote


K-Meleon forum is powered by Phorum.