DBus listen(number<s>) and daemon \-\-number

implement listen method for DBus
listen(number<s>) -> <>::

add \-\-number option to daemon subcommand
- permits starting daemon in anonymous mode with zero or more numbers
- numbers may be added to daemon with listen() and removed with unlisten()

change misleading "dataPath" to `settingsPath` in App.java
- settingsPath=~/.local/share/signal-cli, while dataPath=~/.local/share/signal-cli/data

only use FileLock when necessary in App.java, and unlock when appropriate

update documentation
This commit is contained in:
John Freed 2021-10-05 13:17:30 +02:00
parent 26594dd0ee
commit 690636b83d
12 changed files with 317 additions and 64 deletions

View file

@ -494,13 +494,16 @@ The path of the manifest.json or a zip file containing the sticker pack you wish
=== daemon
signal-cli can run in daemon mode and provides an experimental dbus interface.
If no `-u` username is given, all local users will be exported as separate dbus
objects under the same bus name.
If no `-u` username is given, zero or more local users as specified by the
`--number` option will be exported as separate dbus objects under the same bus name.
If `--number` is omitted, all local users will be exported.
*--system*::
Use DBus system bus instead of user bus.
*--ignore-attachments*::
Dont download attachments of received messages.
*--number* [NUMBER [NUMBER ...]]::
List of zero or more numbers for anonymous daemon to listen to (default=all)
== Examples