blob: 8aedd80308f034a406a36483f788e564dc501139 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
diff --git a/scripts/mailqueued b/scripts/mailqueued
index 1d71c24..ec1f9b5 100755
--- a/scripts/mailqueued
+++ b/scripts/mailqueued
@@ -24,10 +24,10 @@ import uuid
import appdirs
import attr
-import gbulb
import pydbus
-gbulb.install()
+import gi
+from gi.events import GLibEventLoopPolicy
_DIRS = appdirs.AppDirs('mailqueued')
@@ -174,6 +174,7 @@ def main() -> None:
if not os.path.exists(_DIRS.user_data_dir):
os.makedirs(_DIRS.user_data_dir)
+ asyncio.set_event_loop_policy(GLibEventLoopPolicy())
loop = asyncio.get_event_loop()
bus = pydbus.SystemBus()
|