15-tor-browser-bookmarks 669 Bytes
Newer Older
1
2
3
4
5
6
#!/bin/sh

set -e

echo "Set up Tor Browser bookmarks"

anonym's avatar
anonym committed
7
# Import ensure_hook_dependency_is_installed()
8
9
. /usr/local/lib/tails-shell-library/build.sh

anonym's avatar
anonym committed
10
ensure_hook_dependency_is_installed sqlite3
11

12
13
14
15
16
17
18
19
20
21
# Create a symlink to places.sqlite in browser profile from a
# dedicated "bookmarks" directory, so that it can be easily made
# persistent
ln -s /home/amnesia/.mozilla/firefox/bookmarks/places.sqlite \
   /etc/skel/.tor-browser/profile.default/places.sqlite

# Create the bookmarks database
sqlite3 /etc/skel/.mozilla/firefox/bookmarks/places.sqlite \
        < /etc/skel/.mozilla/firefox/bookmarks/places.sqlite.in
rm /etc/skel/.mozilla/firefox/bookmarks/places.sqlite.in