Skip to content

The only downloader you need. 下载器的集大成者。

fix(keepalive): linux

XiaoYouChRc800d31f957f
diff --git a/app/platform/desktop_keepalive.py b/app/platform/desktop_keepalive.py
index a850fbd8..9360f95e 100644
--- a/app/platform/desktop_keepalive.py
+++ b/app/platform/desktop_keepalive.py
@@ -103,7 +103,7 @@ else:
"org.freedesktop.login1.Manager", bus,
)
reply = iface.call("Inhibit", "sleep", "Ghost Downloader", "Active download", "block")
- if reply.type() == reply.ReplyMessage:
+ if reply.type() == reply.MessageType.ReplyMessage:
_inhibitFd = reply.arguments()[0]
else:
raise RuntimeError(reply.errorMessage())