Remove Chromium SingletonLock/Socket/Cookie so a relaunch can acquire the * profile. Safe to call when absent.
(profileDir: string = chromiumProfileDir())
| 220 | /** Remove Chromium SingletonLock/Socket/Cookie so a relaunch can acquire the |
| 221 | * profile. Safe to call when absent. */ |
| 222 | function cleanChromiumProfileLocks(profileDir: string = chromiumProfileDir()): void { |
| 223 | for (const lockFile of ['SingletonLock', 'SingletonSocket', 'SingletonCookie']) { |
| 224 | safeUnlinkQuiet(path.join(profileDir, lockFile)); |
| 225 | } |
| 226 | } |
| 227 | |
| 228 | /** Kill an orphaned Chromium that still holds the profile's SingletonLock. The |
| 229 | * lock symlink target is "hostname-PID"; killing that PID tears down its |
no test coverage detected