Philipp Hörist pushed to branch gajim_1.3 at gajim / gajim
Commits:
4d6eef1a by lovetox at 2021-01-08T20:13:59+01:00
HistoryManager: Make it work again in standalone mode
Fixes #10384
- - - - -
1 changed file:
- gajim/history_manager.py
Changes:
=====================================
gajim/history_manager.py
=====================================
@@ -46,6 +46,7 @@
from gi.repository import Gio
from gi.repository import Pango
+import gajim.gui
from gajim.common import app
from gajim.common import configpaths
from gajim.common.i18n import _
@@ -54,6 +55,8 @@
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():
# Determine if we are in standalone mode
@@ -64,7 +67,15 @@ def is_standalone():
return False
+def init_gtk():
+ gajim.gui.init('gtk')
+ from gajim.gui import exception
+ exception.init()
+
+
if is_standalone():
+ init_gtk()
+
try:
shortargs = 'hvsc:l:p:'
longargs = 'help verbose separate config-path= loglevel= profile='
@@ -86,6 +97,8 @@ def is_standalone():
configpaths.set_config_root(a)
configpaths.init()
+ app.settings = Settings()
+ app.settings.init()
app.load_css_config()
from gajim.common import helpers
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/4d6eef1ad280765cff9a89e827ad6284e6445bbe
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/4d6eef1ad280765cff9a89e827ad6284e6445bbe
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits