pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Firefox 24 doesn't restore session



On Thu 31 Oct 2013 at 21:16:01 +0100, Martin Husemann wrote:
> On Thu, Oct 31, 2013 at 09:00:23PM +0100, Rhialto wrote:
> > Anybody else seeing this?
> 
> Yes, I see it as well - will have a look.

Thanks. In the mean time, I found a workaround that actually worked:
change the setting "browser.startup.homepage_override.mstone" to a
version one lower.

Which I managed to automate. In my little script that starts Firefox I
added this:


# Hack to get back "restore session" effect"

pref=$HOME/.mozilla/firefox/THATRANDOMSTUFF.default/prefs.js
if [ -s "$pref" ]
then
    cp "$pref" "/tmp/prefs.js.$(date)"
    cp "$pref" "$pref".bak
    sed <"$pref".bak >"$pref" \
        -e '/"browser.startup.homepage_override.mstone"/s/24/23/' \
        -e '/"browser.startup.homepage_override.mstone"/s/25/24/'
fi

exec /usr/pkg/bin/firefox "$@"

which shows that Firefox is perfectly *able* to restore the session, it
just (for whatever reason) doesn't *want* to.

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert  -- The Doctor: No, 'eureka' is Greek for
\X/ rhialto/at/xs4all.nl    -- 'this bath is too hot.'

Attachment: pgpzU5rtcjYqS.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index