site  contact  subhomenews

Workaround for SeaMonkey 2.53.2

May 16, 2020 — BarryK

I posted about SM 2.53.2 being broken:

https://bkhome.org/news/202005/seamonkey-2532-is-broken.html

Thanks to bigpup, who posted a link to information on what files to save in Firefox profile (also applicable to SM):

http://murga-linux.com/puppy/viewtopic.php?p=1031782#1031782

I have created a sm 2.53.2 PET, with a new profile folder, /root/.mozilla/seamonkey/2p53p2.default

Easy has a script /usr/bin/seamonkey, that does some checking at first startup. I have added extra code:

#200516 sm 2.53.2 new profile...
OLDPROFILE=''; NEWPROFILE=''
SMPROFILES="$(find ${HOMEDIR} -mindepth 1 -maxdepth 1 -type d -name '*.default' | tr '\n' ' ')"
for aSMPROFILE in ${SMPROFILES}
do
[ -f ${aSMPROFILE}/places.sqlite ] && OLDPROFILE="${aSMPROFILE}"
[ ! -f ${aSMPROFILE}/places.sqlite ] && NEWPROFILE="${aSMPROFILE}"
done
if [ "$OLDPROFILE" -a "$NEWPROFILE" ];then
cp -a -f ${OLDPROFILE}/cookies.sqlite ${NEWPROFILE}/ 2>/dev/null
cp -a -f ${OLDPROFILE}/favicons.sqlite ${NEWPROFILE}/ 2>/dev/null
cp -a -f ${OLDPROFILE}/formhistory.sqlite ${NEWPROFILE}/ 2>/dev/null
cp -a -f ${OLDPROFILE}/permissions.sqlite ${NEWPROFILE}/ 2>/dev/null
cp -a -f ${OLDPROFILE}/places.sqlite ${NEWPROFILE}/ 2>/dev/null
mv -f ${OLDPROFILE} ${OLDPROFILE}OLD
fi

...where $HOMEDIR is normally /root/.mozilla/seamonkey

This will copy some files from the old profile.

EDIT 2020-07-12:
Re-reading this post, I see that a correction is required. I did originally have the above code in the /usr/bin/seamonkey startup script, however that is not a practical location, and it has been moved to /etc/rc.d/rc.update.
  

Tags: easy