[K12OSN] firefox --no-restore ?
Peter Hartmann
ascensiontech at gmail.com
Tue Mar 18 17:41:34 UTC 2008
This is a little scary but it works.
------------------
#!/bin/bash
#/usr/bin/freshfox
rm -rf $HOME/.mozilla/firefox/*.*/sessionstore.js
/usr/bin/firefox $1 &
--------------------------
Peter
On Tue, Mar 18, 2008 at 12:49 PM, Robert Arkiletian <robark at gmail.com> wrote:
> On Tue, Mar 18, 2008 at 8:55 AM, Peter Hartmann <ascensiontech at gmail.com> wrote:
> > > I'm not sure if I'm understanding your question correctly. When you
> > > click on either "Restore Session" or "Start New Session" you are not
> > > creating a new profile.
> >
> > I know. Launching firefox witht he -p switch will create a new
> > profile. I just wanted to be specific and say that I didn't want
> > this.
> >
> >
> >
> > > browser.sessionstore.enabled setting to false. Of course, this removes
> > > the feature altogether, including if the browser crashes rather than
> > > being closed by the teacher.
> >
> > Yep, I'm aware of this too. I don't really want to do that
> > either....just want to disable it once.
> >
>
> Suggestions welcome. fl_tt just simply calls kill. So any tab info
> will not be saved and thus the error message upon next launch. Opera
> has the same behavior. How about this idea, set the
> browser.sessionstore.enabled to false before killing firefox then
> kill it, then set it back to true. If that will work can you tell me
> which file is this setting in so I can code it into fl_tt.
>
> Hmm wait a minute, I don't think this will work. If it's true when it
> starts I think it will still complain. I think any changes to the
> config are only loaded at launch. So any config changes require a
> restart. Any suggestions? Maybe we live with the error message. Unless
> admins disable sessionstore globally. That's what I did with Opera.
> The reason I did this was kids would have like 10 tabs open when they
> quit, then complain it was so slow to startup when the whole class
> launches their browsers the next class.
>
>
>
> >
> > Hopefully that info is stored in a file that I can delete with a
> > script that then calls firefox. The teacher can excecutel that
> > instead with FL_TT.
> >
> > Thanks,
> > Peter
> >
> >
> >
> >
> >
> > On Tue, Mar 18, 2008 at 10:55 AM, Henry Hartley <henryhartley at westat.com> wrote:
> > >
> > > Peter Hartmann wrote:
> > > >>
> > > >> If the teacher kills firefox2 with FL_Teachertool, the next time
> > > >> it's launched the user is presented with the "firefox was shut
> > > >> down improperly" and has the option to start a new session or
> > > >> restore. Is there a way to launch to a new session without
> > > >> creating a new profile?
> > >
> > > I'm not sure if I'm understanding your question correctly. When you
> > > click on either "Restore Session" or "Start New Session" you are not
> > > creating a new profile. You are simply opening Firefox with the same
> > > tabs, on the same pages that were open when it crashed (or was closed
> > > externally). So, if your concern is with new profiles, I don't think
> > > anything needs to be done.
> > >
> > > If, on the other hand, you want to take away the ability to restore a
> > > session (i.e. you want to get rid of that "Restore Previous Session"
> > > option and always start a new session) then you can change the
> > > browser.sessionstore.enabled setting to false. Of course, this removes
> > > the feature altogether, including if the browser crashes rather than
> > > being closed by the teacher.
> > >
> > > --
> > > Henry
> > >
> > > _______________________________________________
> > > K12OSN mailing list
> > > K12OSN at redhat.com
> > > https://www.redhat.com/mailman/listinfo/k12osn
> > > For more info see <http://www.k12os.org>
> > >
> >
> > _______________________________________________
> > K12OSN mailing list
> > K12OSN at redhat.com
> > https://www.redhat.com/mailman/listinfo/k12osn
> > For more info see <http://www.k12os.org>
> >
>
>
>
> --
> Robert Arkiletian
> Eric Hamber Secondary, Vancouver, Canada
> Fl_TeacherTool http://www3.telus.net/public/robark/Fl_TeacherTool/
> C++ GUI tutorial http://www3.telus.net/public/robark/
>
>
>
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
>
More information about the K12OSN
mailing list