summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2018-12-01 19:00:43 +0000
committerMaxime “pep” Buquet <pep@bouah.net>2019-12-27 18:56:27 +0100
commit5fb819d1ed7a2b6d942c493ca0234c70b6b2cf03 (patch)
tree1539556aed9b1aca0776a443d764d267d3dab8de
parente8450bcf518040dbc69fc0e55b3bfc5e8612aaa2 (diff)
downloadpoezio-5fb819d1ed7a2b6d942c493ca0234c70b6b2cf03.tar.gz
poezio-5fb819d1ed7a2b6d942c493ca0234c70b6b2cf03.tar.bz2
poezio-5fb819d1ed7a2b6d942c493ca0234c70b6b2cf03.tar.xz
poezio-5fb819d1ed7a2b6d942c493ca0234c70b6b2cf03.zip
omemo: Use DATA_HOME instead of CACHE_HOME
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r--plugins/omemo_plugin.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/omemo_plugin.py b/plugins/omemo_plugin.py
index c25e5fea..302a3f00 100644
--- a/plugins/omemo_plugin.py
+++ b/plugins/omemo_plugin.py
@@ -14,7 +14,7 @@ import asyncio
import textwrap
from poezio.plugin import BasePlugin
from poezio.tabs import ConversationTab
-from poezio.xdg import CACHE_HOME
+from poezio.xdg import DATA_HOME
from slixmpp import JID
from slixmpp.plugins.xep_0384.plugin import MissingOwnKey
@@ -28,12 +28,12 @@ class Plugin(BasePlugin):
self.info = lambda i: self.api.information(i, 'Info')
self.xmpp = self.core.xmpp
- cache_dir = os.path.join(CACHE_HOME, 'omemo')
- os.makedirs(cache_dir, exist_ok=True)
+ data_dir = os.path.join(DATA_HOME, 'omemo')
+ os.makedirs(data_dir, exist_ok=True)
self.xmpp.register_plugin(
'xep_0384', {
- 'cache_dir': cache_dir,
+ 'data_dir': data_dir,
})
self.api.add_command(