From owner-freebsd-questions@FreeBSD.ORG Mon Sep 15 15:55:25 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 968631065674 for ; Mon, 15 Sep 2008 15:55:25 +0000 (UTC) (envelope-from svein.h@lvor.halvorsen.cc) Received: from bene2.itea.ntnu.no (bene2.itea.ntnu.no [IPv6:2001:700:300:3::57]) by mx1.freebsd.org (Postfix) with ESMTP id 93E3A8FC18 for ; Mon, 15 Sep 2008 15:55:24 +0000 (UTC) (envelope-from svein.h@lvor.halvorsen.cc) Received: from localhost (localhost [127.0.0.1]) by bene2.itea.ntnu.no (Postfix) with ESMTP id 2F31990004 for ; Mon, 15 Sep 2008 17:55:22 +0200 (CEST) Received: from maren.thelosingend.net (maren.math.ntnu.no [129.241.211.48]) by bene2.itea.ntnu.no (Postfix) with SMTP id A676290001 for ; Mon, 15 Sep 2008 17:55:21 +0200 (CEST) Received: (qmail 61643 invoked by uid 88); 15 Sep 2008 17:52:25 +0200 Received: from maren.math.ntnu.no (HELO weld.ej2.thelosingend.net) (129.241.211.48) by maren.thelosingend.net (qpsmtpd/0.31.1) with ESMTP; Mon, 15 Sep 2008 17:52:25 +0200 Message-ID: <48CE8562.5070502@lvor.halvorsen.cc> Date: Mon, 15 Sep 2008 17:55:14 +0200 From: Svein Halvor Halvorsen User-Agent: Thunderbird 2.0.0.9 (X11/20080315) MIME-Version: 1.0 To: Rich Winkel References: <20080913032042.GA67542@pencil.math.missouri.edu> In-Reply-To: <20080913032042.GA67542@pencil.math.missouri.edu> X-Enigmail-Version: 0.95.0 OpenPGP: id=9198BB40; url=mailto:pgpkey@svein.halvorsen.cc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigE00AF0A6EC51727695CC0091" X-Virus-Scanned: Debian amavisd-new at bene2.itea.ntnu.no Cc: freebsd-questions@freebsd.org Subject: Re: browser.cache.disk.parent_directory in firefox X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Sep 2008 15:55:25 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigE00AF0A6EC51727695CC0091 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Rich Winkel wrote: > I'd like to move firefox's cache dir into tmp, under a user-specific > parent directory. How can I specify the userid in the argument to > browser.cache.disk.parent_directory in the system-wide firefox.js setti= ngs > file? > Something like > user_pref("browser.cache.disk.parent_directory", "/tmp/ffCache/$USER");= I needed something similar in Thunderbird, but couldn't find out how, so I renamed thunderbird to thunderbird-bin, and made two new shell scripts, thunderbird and thunderbird-setup. The "thunderbird" script only checks for the existence of the ~/.thunderbird directory, and execs thunderbird-bin if found. If not, it runs thunderbird-setup, followed by thunderbird-bin. The "thunderbird-setup" script untars a premade config dir from a global location, and seds through the directory afterwards, replacing %USER% with the username, %NAME% with the full name, etc. sv. --------------enigE00AF0A6EC51727695CC0091 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) Comment: mailto:pgpkey@svein.halvorsen.cc to get my PGP-key iEYEARECAAYFAkjOhWYACgkQhQg3vZGYu0B+PACfW8sdgliSh3x7+Xf6uFO8Nq1X Z8AAoKSzhjw1xX8+N3RX+t0iLMW/2v7A =/6DY -----END PGP SIGNATURE----- --------------enigE00AF0A6EC51727695CC0091--