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.
This commit is contained in:
parent
8aef005d44
commit
68f7d8c0fb
|
@ -68,7 +68,7 @@ let
|
||||||
''
|
''
|
||||||
${indent indentLevel}<DT><A HREF="${
|
${indent indentLevel}<DT><A HREF="${
|
||||||
escapeXML bookmark.url
|
escapeXML bookmark.url
|
||||||
}" ADD_DATE="0" LAST_MODIFIED="0"${
|
}" ADD_DATE="1" LAST_MODIFIED="1"${
|
||||||
lib.optionalString (bookmark.keyword != null)
|
lib.optionalString (bookmark.keyword != null)
|
||||||
" SHORTCUTURL=\"${escapeXML bookmark.keyword}\""
|
" SHORTCUTURL=\"${escapeXML bookmark.keyword}\""
|
||||||
}${
|
}${
|
||||||
|
|
|
@ -8,18 +8,18 @@
|
||||||
<DL><p>
|
<DL><p>
|
||||||
<DT><H3 PERSONAL_TOOLBAR_FOLDER="true">Bookmarks Toolbar</H3>
|
<DT><H3 PERSONAL_TOOLBAR_FOLDER="true">Bookmarks Toolbar</H3>
|
||||||
<DL><p>
|
<DL><p>
|
||||||
<DT><A HREF="https://nixos.wiki/wiki/Home_Manager" ADD_DATE="0" LAST_MODIFIED="0">Home Manager</A>
|
<DT><A HREF="https://nixos.wiki/wiki/Home_Manager" ADD_DATE="1" LAST_MODIFIED="1">Home Manager</A>
|
||||||
</p></DL>
|
</p></DL>
|
||||||
<DT><A HREF="https://en.wikipedia.org/wiki/Special:Search?search=%s&go=Go" ADD_DATE="0" LAST_MODIFIED="0" SHORTCUTURL="wiki" TAGS="wiki">wikipedia</A>
|
<DT><A HREF="https://en.wikipedia.org/wiki/Special:Search?search=%s&go=Go" ADD_DATE="1" LAST_MODIFIED="1" SHORTCUTURL="wiki" TAGS="wiki">wikipedia</A>
|
||||||
<DT><A HREF="https://www.kernel.org" ADD_DATE="0" LAST_MODIFIED="0">kernel.org</A>
|
<DT><A HREF="https://www.kernel.org" ADD_DATE="1" LAST_MODIFIED="1">kernel.org</A>
|
||||||
<DT><H3>Nix sites</H3>
|
<DT><H3>Nix sites</H3>
|
||||||
<DL><p>
|
<DL><p>
|
||||||
<DT><A HREF="https://nixos.org/" ADD_DATE="0" LAST_MODIFIED="0">homepage</A>
|
<DT><A HREF="https://nixos.org/" ADD_DATE="1" LAST_MODIFIED="1">homepage</A>
|
||||||
<DT><A HREF="https://nixos.wiki/" ADD_DATE="0" LAST_MODIFIED="0" TAGS="wiki,nix">wiki</A>
|
<DT><A HREF="https://nixos.wiki/" ADD_DATE="1" LAST_MODIFIED="1" TAGS="wiki,nix">wiki</A>
|
||||||
<DT><H3>Nix sites</H3>
|
<DT><H3>Nix sites</H3>
|
||||||
<DL><p>
|
<DL><p>
|
||||||
<DT><A HREF="https://nixos.org/" ADD_DATE="0" LAST_MODIFIED="0">homepage</A>
|
<DT><A HREF="https://nixos.org/" ADD_DATE="1" LAST_MODIFIED="1">homepage</A>
|
||||||
<DT><A HREF="https://nixos.wiki/" ADD_DATE="0" LAST_MODIFIED="0">wiki</A>
|
<DT><A HREF="https://nixos.wiki/" ADD_DATE="1" LAST_MODIFIED="1">wiki</A>
|
||||||
</p></DL>
|
</p></DL>
|
||||||
</p></DL>
|
</p></DL>
|
||||||
</p></DL>
|
</p></DL>
|
||||||
|
|
Loading…
Reference in a new issue