Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew White <mehw.is.me@inventati.org>2021-05-15 20:04:09 +0300
committerlovetox <philipp@hoerist.com>2021-07-24 22:57:43 +0300
commitdf53d7ead65da6650cb470c6f0c13a4e048bb942 (patch)
tree4d176e3ca9ecd3f8385bfdbb491c06f6884078b3
parentbec749f7b1620f246c6d6cdd871a8ac8835525d1 (diff)
HistoryManager: Allow it to start in standalone mode
Fixes the following error when starting gajim-history-manager: ModuleNotFoundError: No module named 'gajim.gui.emoji_data'
-rw-r--r--gajim/history_manager.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/gajim/history_manager.py b/gajim/history_manager.py
index 1598ea46b..3e7678402 100644
--- a/gajim/history_manager.py
+++ b/gajim/history_manager.py
@@ -55,7 +55,6 @@ from gajim.common.const import StyleAttr
from gajim.common.const import JIDConstant
from gajim.common.const import KindConstant
from gajim.common.const import ShowConstant
-from gajim.common.settings import Settings
def is_standalone():
@@ -76,6 +75,8 @@ def init_gtk():
if is_standalone():
init_gtk()
+ from gajim.common.settings import Settings
+
try:
shortargs = 'hvsc:l:p:'
longargs = 'help verbose separate config-path= loglevel= profile='
@@ -100,6 +101,8 @@ if is_standalone():
app.settings = Settings()
app.settings.init()
app.load_css_config()
+else:
+ from gajim.common.settings import Settings
from gajim.common import helpers
from gajim.gui.dialogs import ErrorDialog