firefox: link the bookmarks into fs in a way thats easier to edit at runtime

This commit is contained in:
2024-10-05 08:42:18 +00:00
parent b3501d1b30
commit 189d7da00b

View File

@@ -255,11 +255,13 @@ in
// - to add a search shortcut: right-click any search box => "Add a keyword for this search". // - to add a search shortcut: right-click any search box => "Add a keyword for this search".
// - to update the static bookmarks, export via Hamburger => bookmarks => manage bookmarks => Import and Backup => Export Bookmarks To HTML // - to update the static bookmarks, export via Hamburger => bookmarks => manage bookmarks => Import and Backup => Export Bookmarks To HTML
defaultPref("browser.places.importBookmarksHTML", true); defaultPref("browser.places.importBookmarksHTML", true);
defaultPref("browser.bookmarks.file", "${./bookmarks.html}"); defaultPref("browser.bookmarks.file", "~/.mozilla/firefox/bookmarks.html");
defaultPref("browser.startup.homepage", "https://uninsane.org/places"); defaultPref("browser.startup.homepage", "https://uninsane.org/places");
''; '';
fs.".mozilla/firefox/bookmarks.html".symlink.target = ./bookmarks.html;
# instruct Firefox to put the profile in a predictable directory (so we can do things like persist just it). # instruct Firefox to put the profile in a predictable directory (so we can do things like persist just it).
# XXX: the directory *must* exist, even if empty; Firefox will not create the directory itself. # XXX: the directory *must* exist, even if empty; Firefox will not create the directory itself.
fs.".mozilla/firefox/profiles.ini".symlink.text = '' fs.".mozilla/firefox/profiles.ini".symlink.text = ''