<div dir="ltr"><div><div><div><div><div><div>Thanks James!<br><br></div>George,<br><br></div>In conclusion on all similar machines we prepare, let's...<br><br>1) Run:<br><br>   gsettings set org.gnome.Epiphany restore-session-policy never<br><br></div>2) Within /usr/share/applications/epiphany.desktop set it to:<br><br></div>   Exec=epiphany file:///library/index.html %U<br><br>I followed James & Jerry's "list-recursively" suggestion but 
could not find another clean way to force the home/launch/start/portal 
page.<br><br>We'll never know what %U does but that's fine :}<br><br></div><div>3) Manually save "Internet in a Box" (URL = file:///library/index.html or whatever appropriate for that machine!) to epiphany's Bookmarks.  Epiphany's "Not Categorized" section is just fine, in fact perfect since epiphany since then raises the profile of this 1 bookmark, above the 20 preloaded-with-epiphany cluttered bookmarks most end users won't care about.<br><br></div><div>4) Add the following line to /bin/xs-sysprep :<br><br></div><div>   rm -f /root/.bash_history /home/olpc/.bash_history<br><br></div><div>(But do not add the following line to /bin/xs-betaprep !)<br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 19, 2015 at 4:25 PM, Jerry Vonau <span dir="ltr"><<a href="mailto:me@jvonau.ca" target="_blank">me@jvonau.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks James for the insight, I forgot all about gsetting.<br>
<br>
Adam, there might be a knob reveled by 'list-recursively' that you could<br>
turn to set the homepage.<br>
<span class="HOEnZb"><font color="#888888"><br>
Jerry<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
> On November 19, 2015 at 2:45 PM James Cameron <<a href="mailto:quozl@laptop.org">quozl@laptop.org</a>> wrote:<br>
><br>
><br>
> What you suggest seems a bit complex.<br>
><br>
> You may find it easier to change the browser settings;<br>
><br>
>       gsettings set org.gnome.Epiphany restore-session-policy never<br>
><br>
> which never restores the session, or;<br>
><br>
>       gsettings set org.gnome.Epiphany restore-session-policy crashed<br>
><br>
> which only restores the session if the previous session crashed the<br>
> browser; in other words recovering after a browser failure.<br>
><br>
> The default is "always".  For shared computers, not good.<br>
><br>
> Tested with 13.2.6 on an XO-1.<br>
><br>
> A pity this feature isn't exposed to the user more clearly.  There are<br>
> 59 other settings.  They can be shown with;<br>
><br>
>       gsettings list-recursively org.gnome.Epiphany<br>
><br>
> Some of them should make the browser faster on an XO-1, but I've not<br>
> tested.<br>
><br>
> On Thu, Nov 19, 2015 at 11:46:37AM -0500, Adam Holt wrote:<br>
> > I know in theory one doesn't run browsers on servers, but yeah this<br>
> > hack below<br>
> > works to circumvent epiphany browser's default behavior of retaining<br>
> > last URL. <br>
> > Also it avoids stuffing too many tabs into the face of the next<br>
> > session, since<br>
> > "epiphany <my-favorite-start-url>" accumulates too many tabs in a very<br>
> > inflationary way:<br>
> ><br>
> > 1. Create /bin/xs-epiphany containing:<br>
> ><br>
> > #!/bin/bash<br>
> > rm /home/olpc/.config/epiphany/session_state.xml<br>
> > epiphany file:///library/index.html<br>
> ><br>
> > 2. Edit /usr/share/applications/epiphany.desktop so that this line...<br>
> ><br>
> > Exec=epiphany %U<br>
> ><br>
> > Becomes...<br>
> ><br>
> > Exec=xs-epiphany %U<br>
> ><br>
> > Works!  Since epiphany.desktop does not seem to run 2 commands in<br>
> > sequence, a<br>
> > la:<br>
> ><br>
> > Exec=rm /home/olpc/.config/epiphany/session_state.xml; epiphany<br>
> > file:///library<br>
> > /index.html<br>
> ><br>
> > PS sadly I have no clue what %U actually does (since Gnome's pull-down<br>
> > Applications menu is for clicking, not specifying paramters ;) but ah<br>
> > well it<br>
> > works!  FYI the %U %u %F %f parameters are defined here if someone<br>
> > knows far<br>
> > more than I:<br>
> ><br>
> > [1]<a href="https://developer.gnome.org/integration-guide/stable/desktop-files.html.en#" rel="noreferrer" target="_blank">https://developer.gnome.org/integration-guide/stable/desktop-files.html.en#</a><br>
> > commandline<br>
> ><br>
> > --<br>
> > Unsung Heroes of OLPC, interviewed live @ [2]<a href="http://unleashkids.org" rel="noreferrer" target="_blank">http://unleashkids.org</a> !<br>
> ><br>
> > References:<br>
> ><br>
> > [1]<br>
> > <a href="https://developer.gnome.org/integration-guide/stable/desktop-files.html.en#commandline" rel="noreferrer" target="_blank">https://developer.gnome.org/integration-guide/stable/desktop-files.html.en#commandline</a><br>
> > [2] <a href="http://unleashkids.org/" rel="noreferrer" target="_blank">http://unleashkids.org/</a><br>
><br>
> --<br>
> James Cameron<br>
> <a href="http://quozl.linux.org.au/" rel="noreferrer" target="_blank">http://quozl.linux.org.au/<br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr">Unsung Heroes of OLPC, interviewed live @ <a href="http://unleashkids.org" target="_blank">http://unleashkids.org</a> !</div></div>
</a></div></div>
</blockquote></div></div>