fix macOS 'bypass_version.py' get product_json_path from config_file

This commit is contained in:
QTom
2025-04-19 16:58:01 +08:00
committed by GitHub
parent b271166247
commit 30df4d9ad1

View File

@@ -50,6 +50,8 @@ def get_product_json_path(translator=None):
elif system == "Darwin": # macOS
product_json_path = "/Applications/Cursor.app/Contents/Resources/app/product.json"
if config.has_section('MacPaths') and config.has_option('MacPaths', 'product_json_path'):
product_json_path = config.get('MacPaths', 'product_json_path')
elif system == "Linux":
# Try multiple common paths