Re: [Tails-dev] [patch, please review] generate Iceweasel p…

Delete this message

Reply to this message
Author: Alessandro Grassi
Date:  
To: tails-dev
Subject: Re: [Tails-dev] [patch, please review] generate Iceweasel profile at build time
> Great! The hook looks fine. Minor cosmetic remark:[...]
Fixed and new patch attached

> I am not sure I understand. Do you already have code for that?

No, I made tests on the running system

> [...] If the symlink points to a non-existent file, then Firefox will

happily create it [...]
Correct, I tried it too. This is ok for when no places.sqlite exists.
If it exists, user may have some saved bookmarks already, and we should
preserve them.

Alessandro
From c8394e520dd15fdbf80bd1e2651a464499a4a010 Mon Sep 17 00:00:00 2001
From: Alessandro Grassi <alessandro.g89@???>
Date: Sun, 30 Sep 2012 20:09:08 +0200
Subject: [PATCH] generate iceweasel profile at build time

---
config/chroot_local-hooks/14-generate-iceweasel-profile | 11 +++++++++++
1 file changed, 11 insertions(+)
create mode 100755 config/chroot_local-hooks/14-generate-iceweasel-profile

diff --git a/config/chroot_local-hooks/14-generate-iceweasel-profile b/config/chroot_local-hooks/14-generate-iceweasel-profile
new file mode 100755
index 0000000..d910076
--- /dev/null
+++ b/config/chroot_local-hooks/14-generate-iceweasel-profile
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+#generate iceweasel profile at build time, so that it has a fixed name
+
+set -e
+apt-get --yes install xvfb
+xvfb-run iceweasel -CreateProfile default
+mv ~/.mozilla/firefox/*.default ~/.mozilla/firefox/default
+sed -i "s@Path=.*\.default@Path=default@" ~/.mozilla/firefox/profiles.ini
+mv ~/.mozilla /etc/skel
+apt-get --yes purge xvfb
--
1.7.10.4