()
| 45 | } |
| 46 | |
| 47 | fn get_cursor_package_path() -> Option<PathBuf> { |
| 48 | if let Some(user_dirs) = BaseDirs::new() { |
| 49 | let local_app_data_dir = user_dirs.data_local_dir(); |
| 50 | let primary_path = local_app_data_dir.join("Programs").join("cursor").join("resources").join("app").join("package.json"); |
| 51 | if primary_path.exists() { |
| 52 | return Some(primary_path); |
| 53 | } |
| 54 | let alt_path = local_app_data_dir.join("cursor").join("resources").join("app").join("package.json"); |
| 55 | if alt_path.exists() { |
| 56 | return Some(alt_path); |
| 57 | } |
| 58 | } |
| 59 | None |
| 60 | } |
| 61 | |
| 62 | fn get_cursor_updater_path() -> Option<PathBuf> { |
| 63 | if let Some(user_dirs) = BaseDirs::new() { |
no outgoing calls
no test coverage detected