mirror of
https://github.com/tcsenpai/pensieve.git
synced 2025-06-06 03:05:25 +00:00
fix: make sure plist dir exists
This commit is contained in:
parent
5966b784bc
commit
aa484ec906
@ -400,7 +400,9 @@ def generate_plist():
|
||||
</dict>
|
||||
</plist>
|
||||
"""
|
||||
plist_path = Path.home() / "Library/LaunchAgents/com.user.memos.plist"
|
||||
plist_dir = Path.home() / "Library/LaunchAgents"
|
||||
plist_dir.mkdir(parents=True, exist_ok=True)
|
||||
plist_path = plist_dir / "com.user.memos.plist"
|
||||
with open(plist_path, "w") as f:
|
||||
f.write(plist_content)
|
||||
return plist_path
|
||||
|
Loading…
x
Reference in New Issue
Block a user