Skip to content

Commit

Permalink
Merge pull request #257 from ling-yuan/main
Browse files Browse the repository at this point in the history
fix: 修复Windows下Cursor路径获取逻辑
  • Loading branch information
chengazhen authored Feb 28, 2025
2 parents 567430b + 608b8d7 commit db8b875
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion patch_cursor_get_machine_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def get_cursor_paths() -> Tuple[str, str]:
},
"Windows": {
"base": os.path.join(
os.getenv("LOCALAPPDATA", ""), "Programs", "Cursor", "resources", "app"
os.getenv("USERAPPPATH") or (os.getenv("LOCALAPPDATA", ""), "Programs", "Cursor", "resources", "app")
),
"package": "package.json",
"main": "out/main.js",
Expand Down

0 comments on commit db8b875

Please sign in to comment.