From 41759ae9c279328c194b66aa135e54965db4cc34 Mon Sep 17 00:00:00 2001 From: John Freed Date: Sat, 16 Oct 2021 16:59:08 +0200 Subject: [PATCH] Updated DBus service (markdown) --- DBus-service.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DBus-service.md b/DBus-service.md index e4d33a0..280f3f7 100644 --- a/DBus-service.md +++ b/DBus-service.md @@ -146,6 +146,10 @@ To reverse the process: ``` python3 -c 'import base64; print(base64.b64encode(bytearray([139,22,72,247,116,32,170,104,205,164,207,21,248,77])))' ``` +... or using Bash ... +``` +echo "139,22,72,247,116,32,170,104,205,164,207,21,248,77"|sed 's/,/ /g'|while read i; do printf "%02x" ${i}; done|sed 's/^/00000000: /g'|xxd -r -c 256|base64 +``` In the examples above, attachments are identified by the first `array:string:` argument (`dbus-send` arguments must be in the correct order). The last argument can either be a single `string:RECIPIENT` (as in the examples above) or an `array:string:RECIPIENT1,RECIPIENT2,...` (for `dbus-send`, an array argument consists of a comma-separated list).