From f4398bccc62fc5528b4b4958638f36b36642e05b Mon Sep 17 00:00:00 2001 From: TheZ3ro Date: Tue, 16 Jan 2018 00:45:51 +0100 Subject: [PATCH] Updated Using DBus with KeePassXC (markdown) --- Using-DBus-with-KeePassXC.md | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/Using-DBus-with-KeePassXC.md b/Using-DBus-with-KeePassXC.md index 3dbaa02..eb49a93 100644 --- a/Using-DBus-with-KeePassXC.md +++ b/Using-DBus-with-KeePassXC.md @@ -2,28 +2,39 @@ * Open keepassxc database: without password and key file -`qdbus org.keepassxc.MainWindow /keepassxc org.keepassxc.MainWindow.openDatabase /path/to/database.kdbx` +``` +qdbus org.keepassxc.MainWindow /keepassxc org.keepassxc.MainWindow.openDatabase /path/to/database.kdbx +``` * Open keepassxc database: with password but without key file -`qdbus org.keepassxc.MainWindow /keepassxc org.keepassxc.MainWindow.openDatabase /path/to/database.kdbx passwd` +``` +qdbus org.keepassxc.MainWindow /keepassxc org.keepassxc.MainWindow.openDatabase /path/to/database.kdbx passwd +``` * Open keepassxc database: with password and key file -`qdbus org.keepassxc.MainWindow /keepassxc org.keepassxc.MainWindow.openDatabase /path/to/database.kdbx passwd /path/to/key` - +``` +qdbus org.keepassxc.MainWindow /keepassxc org.keepassxc.MainWindow.openDatabase /path/to/database.kdbx passwd /path/to/key +``` * Lock all keepassxc databases -`qdbus org.keepassxc.MainWindow /keepassxc org.keepassxc.MainWindow.closeAllDatabases` +``` +qdbus org.keepassxc.MainWindow /keepassxc org.keepassxc.MainWindow.lockAllDatabases +``` * Close all keepassxc databases -`qdbus org.keepassxc.MainWindow /keepassxc org.keepassxc.MainWindow.closeAllDatabases` +``` +qdbus org.keepassxc.MainWindow /keepassxc org.keepassxc.MainWindow.closeAllDatabases +``` * Exit keepassxc - `qdbus org.keepassxc.MainWindow /keepassxc org.keepassxc.MainWindow.exit` +``` +qdbus org.keepassxc.MainWindow /keepassxc org.keepassxc.MainWindow.exit +``` ## Develop @@ -38,9 +49,12 @@ It can be usefull to know how to generate the XML adaptor Generate template from sources - qdbuscpp2xml -M -s MainWindow.h -o org.keepassxc.MainWindow.xml +``` +qdbuscpp2xml -M -s MainWindow.h -o org.keepassxc.MainWindow.xml +``` Make sure interface name is org.keepassxc.MainWindow - - +``` + +```