From 2acb271f192497775fe0121ab83ad11873839fd6 Mon Sep 17 00:00:00 2001 From: tom Date: Tue, 25 Feb 2025 16:52:32 +0800 Subject: [PATCH] add support for linux --- cursor_auth.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cursor_auth.py b/cursor_auth.py index c2a2bbe..cff55d4 100644 --- a/cursor_auth.py +++ b/cursor_auth.py @@ -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"