Skip to content
Snippets Groups Projects
Commit 395f9575 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

Make threads usable under windows so GPG works correctly. Fixes #7565

parent a7a83544
No related branches found
No related tags found
No related merge requests found
......@@ -209,6 +209,7 @@ try:
GObject.set_prgname('gajim')
from gi.repository import Gtk
from gi.repository import Gdk
from gi.repository import GLib
except Warning as msg2:
if str(msg2) == 'could not open display':
print(_('Gajim needs X server to run. Quiting...'), file=sys.stderr)
......@@ -492,6 +493,7 @@ if __name__ == '__main__':
interface.run()
try:
GLib.threads_init()
Gtk.main()
except KeyboardInterrupt:
print('KeyboardInterrupt', file=sys.stderr)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment