Re: [Tails-dev] Bookmarks persistence - help needed

Nachricht löschen

Nachricht beantworten
Autor: Alessandro Grassi
Datum:  
To: tails-dev
Betreff: Re: [Tails-dev] Bookmarks persistence - help needed
> Yes, it is too late. But don't worry, 0.15 should be out early
> December. :) That gives us a little more room to have the
> documentation well polished and delivered with more translations.
>
> --
> Ague


Fine. I made a new patch for documentation, and symlink patch is fixed to create the bookmarks folder. All the needed patches are attached.

Greetings
Alessandro
>From e173105a99a545f754d367325ef91714ac81d443 Mon Sep 17 00:00:00 2001
From: Tails developers <amnesia@???>
Date: Fri, 5 Oct 2012 22:54:29 +0200
Subject: [PATCH] Added bookmarks preset

---
lib/Tails/Persistence/Configuration/Presets.pm | 10 ++++++++++
1 file changed, 10 insertions(+)

diff --git a/lib/Tails/Persistence/Configuration/Presets.pm b/lib/Tails/Persistence/Configuration/Presets.pm
index 5113828..ede4b24 100644
--- a/lib/Tails/Persistence/Configuration/Presets.pm
+++ b/lib/Tails/Persistence/Configuration/Presets.pm
@@ -114,6 +114,16 @@ method _build__presets {
             enabled     => 0,
             icon_name   => 'network-wired',
         },
+    {
+            name        => $self->encoding->decode(gettext(q{Browser bookmarks})),
+            description => $self->encoding->decode(gettext(
+                q{Bookmarks saved in Iceweasel browser}
+            )),
+            destination => '/home/amnesia/.mozilla/firefox/bookmarks',
+            options     => [ 'source=bookmarks' ],
+            enabled     => 0,
+            icon_name   => 'user-bookmarks',
+        },
         {
             name        => $self->encoding->decode(gettext(q{APT Packages})),
             description => $self->encoding->decode(gettext(
-- 
1.7.10.4


>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

>From 8fe538046c192875522e4691aa67b5d01ff3677a Mon Sep 17 00:00:00 2001
From: Tails developers <amnesia@???>
Date: Wed, 10 Oct 2012 19:31:49 +0200
Subject: [PATCH] symlink places.sqlite for bookmarks persistence

---
 config/chroot_local-hooks/15-symlink-places.sqlite |    9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100755 config/chroot_local-hooks/15-symlink-places.sqlite


diff --git a/config/chroot_local-hooks/15-symlink-places.sqlite b/config/chroot_local-hooks/15-symlink-places.sqlite
new file mode 100755
index 0000000..3c39cff
--- /dev/null
+++ b/config/chroot_local-hooks/15-symlink-places.sqlite
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+#create a symlink to places.sqlite in iceweasel profile
+#from a dedicated "bookmarks" directory, so that
+#it can be easily made persistent
+
+set -e
+ln -s /home/amnesia/.mozilla/firefox/bookmarks/places.sqlite /etc/skel/.mozilla/firefox/default/places.sqlite
+mkdir /etc/skel/.mozilla/firefox/bookmarks
--
1.7.10.4

>From 3bd7926a678d59be3861776b9f7da2d30b8e9b54 Mon Sep 17 00:00:00 2001
From: Tails developers <amnesia@???>
Date: Thu, 11 Oct 2012 22:43:57 +0200
Subject: [PATCH 2/2] Documentation for bookmarks persistence

---
 wiki/src/contribute/design/persistence.mdwn             |    1 +
 wiki/src/doc/first_steps/persistence/configure.mdwn     |   11 +++++++++++
 wiki/src/doc/first_steps/persistence/user-bookmarks.png |  Bin 0 -> 2399 bytes
 3 files changed, 12 insertions(+)
 create mode 100644 wiki/src/doc/first_steps/persistence/user-bookmarks.png


diff --git a/wiki/src/contribute/design/persistence.mdwn b/wiki/src/contribute/design/persistence.mdwn
index b75447a..efbce5c 100644
--- a/wiki/src/contribute/design/persistence.mdwn
+++ b/wiki/src/contribute/design/persistence.mdwn
@@ -24,6 +24,7 @@ This is relevant for the following applications:
- GnuPG configuration
- SSH client configuration
- iceweasel certificate trust
+- iceweasel bookmarks
- Pidgin configuration
- MUA configuration
- Tor's data/cache for faster bootstrap with slow connections and
diff --git a/wiki/src/doc/first_steps/persistence/configure.mdwn b/wiki/src/doc/first_steps/persistence/configure.mdwn
index 33b1b60..f85904a 100644
--- a/wiki/src/doc/first_steps/persistence/configure.mdwn
+++ b/wiki/src/doc/first_steps/persistence/configure.mdwn
@@ -204,6 +204,17 @@ The <span class="emphasis">APT lists</span> are needed to install additional
programs or explore the list of available software packages. This feature allows
you to reuse them during future working sessions, even offline.

+<a id="browser_bookmarks"></a>
+
+<div class="icon">
+<div class="image"><img src="../user-bookmarks.png"/></div>
+<div class="text"><h2>Browser bookmarks</h2></div>
+</div>
+
+When this feature is activated, changes to the bookmarks in the
+<span class="application">Iceweasel</span> browser are saved in the persistent
+volume. This does not apply to the Unsafe web browser.
+
<a id="dotfiles"></a>

<div class="icon">
diff --git a/wiki/src/doc/first_steps/persistence/user-bookmarks.png b/wiki/src/doc/first_steps/persistence/user-bookmarks.png
new file mode 100644
index 0000000000000000000000000000000000000000..6aca75f9c0396a61130368018d9a834ee75868d7
GIT binary patch
literal 2399
zcmV-l3840gP)<h;3K|Lk000e1NJLTq001xm001xu1^@s6R|5Hm00004b3#c}2nYxW
zd<bNS00009a7bBm000fw000fw0YWI7cmMzZ8FWQhbW?9;ba!ELWdL_~cP?peYja~^
zaAhuUa%Y?FJQ@H101k9TSaeirbZlh+MsI9nWpZ;NRH|S>0000NbVXQnL3MO!Z*l-k
zVQ_CCL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