From 68f7d8c0fb0bfc67d1916dd7f06288424360d43a Mon Sep 17 00:00:00 2001 From: Simone Ragusa Date: Wed, 4 Oct 2023 21:08:09 +0200 Subject: [PATCH] firefox: set ADD_DATE and LAST_MODIFIED of bookmarks to 1 For some reason, Firefox completely discards the ADD_DATE and LAST_MODIFIED attributes if they are set to 0. This has been confirmed by exporting a sample set of bookmarks generated by Nix using home-manager and comparing it to the same sample of bookmarks set manually and then exported. Missing these attributes can cause problems for extensions and other tools that try to read bookmarks. A known example is the Tridactyl extension. --- modules/programs/firefox.nix | 2 +- .../profile-settings-expected-bookmarks.html | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/programs/firefox.nix b/modules/programs/firefox.nix index d420f554..368d43f4 100644 --- a/modules/programs/firefox.nix +++ b/modules/programs/firefox.nix @@ -68,7 +68,7 @@ let '' ${indent indentLevel}

Bookmarks Toolbar

-

Home Manager +
Home Manager

-
wikipedia -
kernel.org +
wikipedia +
kernel.org

Nix sites

-

homepage -
wiki +
homepage +
wiki

Nix sites

-

homepage -
wiki +
homepage +
wiki