mirror of
https://git.sr.ht/~cismonx/bookmarkfs
synced 2025-06-07 19:58:50 +00:00
doc: misc update
This commit is contained in:
parent
a2dda5ec84
commit
827ed94f6d
3 changed files with 40 additions and 32 deletions
|
@ -22,6 +22,9 @@ Requirements
|
||||||
|
|
||||||
### Dependencies
|
### Dependencies
|
||||||
|
|
||||||
|
In addition to the OS kernel and a POSIX-compatible libc,
|
||||||
|
BookmarkFS depends on a few third-party libraries:
|
||||||
|
|
||||||
| Library Name | Minimal Version |
|
| Library Name | Minimal Version |
|
||||||
| ------------ | --------------- |
|
| ------------ | --------------- |
|
||||||
| libfuse | 3.5 |
|
| libfuse | 3.5 |
|
||||||
|
@ -158,7 +161,7 @@ Notes
|
||||||
|
|
||||||
If a BookmarkFS utility library is already installed, it can be
|
If a BookmarkFS utility library is already installed, it can be
|
||||||
specified with `--with-bookmarkfs[=<pkgconfdir>]` during configuration,
|
specified with `--with-bookmarkfs[=<pkgconfdir>]` during configuration,
|
||||||
in the same way like with other dependencies.
|
in the same way as with other dependencies.
|
||||||
|
|
||||||
In this case, the utility library will not be built from source,
|
In this case, the utility library will not be built from source,
|
||||||
and other components will link to the specified library instead.
|
and other components will link to the specified library instead.
|
||||||
|
|
|
@ -26,19 +26,19 @@ bookmarkctl - manage a mounted BookmarkFS filesystem
|
||||||
.B bookmarkctl
|
.B bookmarkctl
|
||||||
.B xattr\-get
|
.B xattr\-get
|
||||||
.RI [ options ]
|
.RI [ options ]
|
||||||
.I name
|
.I attrname
|
||||||
.IR pathname ...
|
.IR pathname ...
|
||||||
.PP
|
.PP
|
||||||
.B bookmarkctl
|
.B bookmarkctl
|
||||||
.B xattr\-get
|
.B xattr\-get
|
||||||
.RI [ options ]
|
.RI [ options ]
|
||||||
.B \-m
|
.B \-m
|
||||||
.IR name "... " pathname
|
.IR attrname "... " pathname
|
||||||
.PP
|
.PP
|
||||||
.B bookmarkctl
|
.B bookmarkctl
|
||||||
.B xattr\-set
|
.B xattr\-set
|
||||||
.RI [ options ]
|
.RI [ options ]
|
||||||
.I name
|
.I attrname
|
||||||
.I pathname
|
.I pathname
|
||||||
.PP
|
.PP
|
||||||
.B bookmarkctl
|
.B bookmarkctl
|
||||||
|
@ -96,7 +96,7 @@ of the file referred to by
|
||||||
.IR pathname .
|
.IR pathname .
|
||||||
.PP
|
.PP
|
||||||
The
|
The
|
||||||
.I name
|
.I attrname
|
||||||
argument is the name of the extended attribute,
|
argument is the name of the extended attribute,
|
||||||
without the "user.bookmarkfs." prefix.
|
without the "user.bookmarkfs." prefix.
|
||||||
.SS Set extended attribute value
|
.SS Set extended attribute value
|
||||||
|
@ -107,7 +107,7 @@ of the file referred to by
|
||||||
.IR pathname .
|
.IR pathname .
|
||||||
.PP
|
.PP
|
||||||
The
|
The
|
||||||
.I name
|
.I attrname
|
||||||
argument is the name of the extended attribute,
|
argument is the name of the extended attribute,
|
||||||
without the "user.bookmarkfs." prefix.
|
without the "user.bookmarkfs." prefix.
|
||||||
.
|
.
|
||||||
|
@ -150,7 +150,7 @@ Switch to multi-name mode, where multiple extended attribute names
|
||||||
can be specified instead of multiple files.
|
can be specified instead of multiple files.
|
||||||
.IP
|
.IP
|
||||||
Also, the corresponding
|
Also, the corresponding
|
||||||
.I name
|
.I attrname
|
||||||
is printed alongside with the value, instead of
|
is printed alongside with the value, instead of
|
||||||
.IR pathname .
|
.IR pathname .
|
||||||
.TP
|
.TP
|
||||||
|
|
|
@ -33,6 +33,10 @@
|
||||||
@uref{https://datatracker.ietf.org/doc/html/\path\, \name\}
|
@uref{https://datatracker.ietf.org/doc/html/\path\, \name\}
|
||||||
@end macro
|
@end macro
|
||||||
|
|
||||||
|
@macro sqlitedoc {name, path}
|
||||||
|
@uref{https://www.sqlite.org/\path\, \name\}
|
||||||
|
@end macro
|
||||||
|
|
||||||
@macro tcldoc {name, path}
|
@macro tcldoc {name, path}
|
||||||
@uref{https://www.tcl.tk/man/tcl8.6.13/\path\, \name\}
|
@uref{https://www.tcl.tk/man/tcl8.6.13/\path\, \name\}
|
||||||
@end macro
|
@end macro
|
||||||
|
@ -622,12 +626,12 @@ Displays extended attribute values.
|
||||||
@xref{Extended Attributes}.
|
@xref{Extended Attributes}.
|
||||||
|
|
||||||
@example
|
@example
|
||||||
bookmarkctl xattr-get [@var{options}] @var{name} @var{pathname}...
|
bookmarkctl xattr-get [@var{options}] @var{attrname} @var{pathname}...
|
||||||
bookmarkctl xattr-get [@var{options}] -m @var{name}... @var{pathname}
|
bookmarkctl xattr-get [@var{options}] -m @var{attrname}... @var{pathname}
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
@table @var
|
@table @var
|
||||||
@item name
|
@item attrname
|
||||||
Name of the extended attribute, without the @samp{user.bookmarkfs.} prefix.
|
Name of the extended attribute, without the @samp{user.bookmarkfs.} prefix.
|
||||||
|
|
||||||
@item pathname
|
@item pathname
|
||||||
|
@ -647,7 +651,7 @@ If this option is not provided, non-printable characters are replaced with
|
||||||
Switch to multi-name mode, where multiple extended attribute names
|
Switch to multi-name mode, where multiple extended attribute names
|
||||||
can be specified instead of multiple files.
|
can be specified instead of multiple files.
|
||||||
|
|
||||||
Also, the corresponding @var{name} is printed alongside with the value,
|
Also, the corresponding @var{attrname} is printed alongside with the value,
|
||||||
instead of @var{pathname}.
|
instead of @var{pathname}.
|
||||||
|
|
||||||
@item -q
|
@item -q
|
||||||
|
@ -673,11 +677,11 @@ Update the value of an extended attribute.
|
||||||
@xref{Extended Attributes}.
|
@xref{Extended Attributes}.
|
||||||
|
|
||||||
@example
|
@example
|
||||||
bookmarkctl xattr-set [@var{options}] @var{name} @var{pathname}
|
bookmarkctl xattr-set [@var{options}] @var{attrname} @var{pathname}
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
@table @var
|
@table @var
|
||||||
@item name
|
@item attrname
|
||||||
Name of the extended attribute to update,
|
Name of the extended attribute to update,
|
||||||
without the @samp{user.bookmarkfs.} prefix.
|
without the @samp{user.bookmarkfs.} prefix.
|
||||||
|
|
||||||
|
@ -1243,17 +1247,18 @@ The Firefox backend provides access to the bookmark data of the web browser
|
||||||
and its derivatives, notably @uref{https://www.torproject.org/, Tor Browser}
|
and its derivatives, notably @uref{https://www.torproject.org/, Tor Browser}
|
||||||
and @uref{https://librewolf.net/, Librewolf}.
|
and @uref{https://librewolf.net/, Librewolf}.
|
||||||
|
|
||||||
Firefox bookmarks are stored in a SQLite database under the profile directory:
|
Backend name (for the @option{-o backend} option): @samp{firefox}.
|
||||||
|
|
||||||
|
Firefox bookmarks are stored in a SQLite database under the profile directory.
|
||||||
|
When mounting the filesystem, this pathname shall be passed as the @var{src}
|
||||||
|
argument (@pxref{mount.bookmarkfs}):
|
||||||
|
|
||||||
@example
|
@example
|
||||||
~/.mozilla/firefox/@var{$@{profile_name@}}/places.sqlite
|
~/.mozilla/firefox/@var{$@{profile_name@}}/places.sqlite
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
When mounting the filesystem, this pathname shall be passed as the @var{src}
|
|
||||||
argument (@pxref{mount.bookmarkfs}).
|
|
||||||
Actual path for the profile directories may differ across distributions.
|
Actual path for the profile directories may differ across distributions.
|
||||||
|
When in doubt, visit @url{about:profiles} in your browser.
|
||||||
Backend name: @samp{firefox}.
|
|
||||||
|
|
||||||
Backend-specific options (@command{mount.bookmarkfs} only):
|
Backend-specific options (@command{mount.bookmarkfs} only):
|
||||||
|
|
||||||
|
@ -1284,11 +1289,10 @@ The database connection locking mode for the bookmark storage.
|
||||||
Defaults to @samp{normal} when the filesystem is mounted read-only,
|
Defaults to @samp{normal} when the filesystem is mounted read-only,
|
||||||
@samp{exclusive} otherwise.
|
@samp{exclusive} otherwise.
|
||||||
|
|
||||||
This option corresponds to the
|
This option corresponds to the @sqlitedoc{@code{locking_mode},
|
||||||
@uref{https://www.sqlite.org/pragma.html#pragma_locking_mode,
|
pragma.html#pragma_locking_mode} pragma on SQLite.
|
||||||
@code{locking_mode}} pragma on SQLite.
|
With @option{lock=exclusive}, other processes cannot access
|
||||||
With @option{lock=exclusive}, other process cannot access the bookmark storage
|
the bookmark storage until the filesystem is dismounted.
|
||||||
until the filesystem is dismounted.
|
|
||||||
|
|
||||||
The Firefox browser holds an exclusive lock on the database by default.
|
The Firefox browser holds an exclusive lock on the database by default.
|
||||||
If you wish to mount the bookmarks while keeping the browser session open,
|
If you wish to mount the bookmarks while keeping the browser session open,
|
||||||
|
@ -1351,14 +1355,14 @@ the Unix epoch.
|
||||||
Notable limitations:
|
Notable limitations:
|
||||||
|
|
||||||
@itemize @bullet{}
|
@itemize @bullet{}
|
||||||
@item Due to the way bookmarks are associated with the URLs,
|
@item If multiple bookmarks share the same URL, changing the last access time
|
||||||
if multiple bookmarks share the same URL, changing the last access time
|
of a bookmark may affect that of other bookmarks,
|
||||||
of a bookmark may affect that of other bookmarks.
|
due to the way bookmarks are associated with the URLs.
|
||||||
|
|
||||||
@item The bookmark storage (SQLite database file) should be writable even if
|
@item The bookmark storage (SQLite database file) should be writable even if
|
||||||
the BookmarkFS filesystem is mounted read-only, due to the limitations
|
the BookmarkFS filesystem is mounted read-only, due to the limitations
|
||||||
of WAL-mode.
|
of WAL-mode.
|
||||||
See @uref{https://www.sqlite.org/wal.html#readonly, Write-Ahead Logging}.
|
See @sqlitedoc{Write-Ahead Logging, wal.html#readonly}.
|
||||||
@end itemize
|
@end itemize
|
||||||
|
|
||||||
|
|
||||||
|
@ -1370,18 +1374,19 @@ The Chromium backend provides access to the bookmark data of the web browser
|
||||||
notably @uref{https://github.com/ungoogled-software/ungoogled-chromium,
|
notably @uref{https://github.com/ungoogled-software/ungoogled-chromium,
|
||||||
ungoogled-chromium}.
|
ungoogled-chromium}.
|
||||||
|
|
||||||
|
Backend name (for the @option{-o backend} option): @samp{chromium}.
|
||||||
|
|
||||||
Chromium bookmarks are stored in a text file (in JSON format)
|
Chromium bookmarks are stored in a text file (in JSON format)
|
||||||
under the profile directory:
|
under the profile directory.
|
||||||
|
When mounting the filesystem, this pathname shall be passed as the @var{src}
|
||||||
|
argument (@pxref{mount.bookmarkfs}):
|
||||||
|
|
||||||
@example
|
@example
|
||||||
~/.config/chromium/@var{$@{profile_name@}}/Bookmarks
|
~/.config/chromium/@var{$@{profile_name@}}/Bookmarks
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
When mounting the filesystem, this pathname shall be passed as the @var{src}
|
|
||||||
argument (@pxref{mount.bookmarkfs}).
|
|
||||||
Actual path for the profile directories may differ across distributions.
|
Actual path for the profile directories may differ across distributions.
|
||||||
|
When in doubt, visit @url{chrome://profile-internals/} in your browser.
|
||||||
Backend name: @samp{chromium}.
|
|
||||||
|
|
||||||
Backend-specific options (@command{mount.bookmarkfs} only):
|
Backend-specific options (@command{mount.bookmarkfs} only):
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue