Merge pull request #101 from aliensb/main

add support for linux
This commit is contained in:
Pin Studios 2025-02-25 23:56:29 +08:00 committed by GitHub
commit 68b7888a83
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,6 +26,10 @@ class CursorAuth:
self.db_path = os.path.join(
os.getenv("APPDATA"), "Cursor", "User", "globalStorage", "state.vscdb"
)
elif os.name =='posix':
self.db_path = os.path.expanduser(
"~/.config/Cursor/User/globalStorage/state.vscdb"
)
else: # macOS
self.db_path = os.path.expanduser(
"~/Library/Application Support/Cursor/User/globalStorage/state.vscdb"