Andy Tien
501e74ddf3
fix(daemon): use exit code instead of localized text for schtasks fallback (#85347)
* fix(daemon): use exit code instead of localized text for schtasks fallback
Problem:
- shouldFallbackToStartupEntry() only matched English/Spanish error messages
("access is denied" / "acceso denegado"), causing silent fallback failure
on non-English Windows systems (Chinese, Japanese, French, German, etc.)
Fix:
- Replace regex matching with exit code check (params.code === 1)
- schtasks returns exit code 1 for access denied / generic failure
regardless of system locale
Fixes: #85255
* test(daemon): cover localized schtasks fallback
---------
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-05-22 20:43:40 +01:00
..
2026-05-21 06:48:15 +00:00
2026-05-23 00:00:38 +08:00
2026-05-17 03:44:05 +01:00
2026-05-17 03:44:05 +01:00
2026-05-16 22:56:48 +01:00
2026-05-16 23:06:12 +01:00
2026-05-22 21:02:58 +08:00
2026-05-22 21:13:26 +08:00
2026-05-22 21:13:26 +08:00
2026-05-22 21:21:23 +08:00
2026-05-22 21:21:23 +08:00
2026-05-16 22:25:33 -07:00
2026-05-18 06:22:36 +01:00
2026-05-17 03:44:05 +01:00
2026-05-17 03:44:05 +01:00
2026-05-12 18:47:20 +01:00
2026-05-17 03:44:05 +01:00
2026-05-17 03:44:05 +01:00
2026-05-17 03:44:05 +01:00
2026-05-18 06:22:36 +01:00
2026-05-18 06:22:36 +01:00
2026-05-16 22:25:33 -07:00
2026-05-22 20:43:40 +01:00
2026-05-12 19:35:25 +01:00
2026-05-22 09:46:52 +05:30
2026-05-22 20:43:40 +01:00
2026-05-22 21:28:50 +08:00
2026-05-22 21:28:50 +08:00
2026-05-18 06:22:36 +01:00
2026-05-16 22:25:33 -07:00
2026-05-17 16:52:46 +08:00
2026-05-21 06:48:15 +00:00
2026-05-21 06:48:15 +00:00
2026-05-21 06:48:15 +00:00