Skip to content

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

明确 macOS 平台的软件包名为 com.xiaoyouchr.ghostdownloader

XiaoYouChR56bead575fba
diff --git a/app/view/setting_interface.py b/app/view/setting_interface.py
index f8c2a186..a476e67d 100644
--- a/app/view/setting_interface.py
+++ b/app/view/setting_interface.py
@@ -467,13 +467,13 @@ class SettingInterface(ScrollArea):
elif sys.platform == "darwin":
import pwd
if value:
- with open(f"/Users/{pwd.getpwuid(os.getuid()).pw_name}/Library/LaunchAgents/app.ghost.downloader.plist", "w") as f:
+ with open(f"/Users/{pwd.getpwuid(os.getuid()).pw_name}/Library/LaunchAgents/com.xiaoyouchr.ghostdownloader.plist", "w") as f:
f.write(f"""<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
- <string>app.ghost.downloader</string>
+ <string>com.xiaoyouchr.ghostdownloader</string>
<key>ProgramArguments</key>
<array>
<string>'{QApplication.applicationFilePath()}'</string>
@@ -484,7 +484,7 @@ class SettingInterface(ScrollArea):
</dict>
</plist>""")
else:
- os.remove(f"/Users/{pwd.getpwuid(os.getuid()).pw_name}/Library/LaunchAgents/app.ghost.downloader.plist")
+ os.remove(f"/Users/{pwd.getpwuid(os.getuid()).pw_name}/Library/LaunchAgents/com.xiaoyouchr.ghostdownloader.plist")
elif sys.platform == "linux":
if value:
autoStartPath = Path(f'/home/{os.getlogin()}/.config/autostart/')