Commit 2c5b529
login: use explorer.exe for the WSL no-wslview browser fallback
cmd.exe `/c start` reparses its command line, so the `&` separators in
an OAuth authorization URL split it into multiple commands and open a
truncated URL (WSL interop only quotes argv entries containing
whitespace). explorer.exe takes the URL as a plain argument and hands it
to the shell URL handler: no reparsing, no escaping needed, and no UNC
working-directory warning — which also removes the /mnt/c cmd.Dir
workaround and the dir return value from resolveBrowserLauncher.
explorer.exe's exit code is meaningless (1 even on success); openBrowser
only checks process start, and a comment now guards that invariant.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 5391daf commit 2c5b529
2 files changed
Lines changed: 21 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
595 | 595 | | |
596 | 596 | | |
597 | 597 | | |
598 | | - | |
| 598 | + | |
599 | 599 | | |
600 | 600 | | |
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
604 | | - | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | 604 | | |
614 | 605 | | |
615 | 606 | | |
| |||
631 | 622 | | |
632 | 623 | | |
633 | 624 | | |
634 | | - | |
635 | | - | |
636 | | - | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
637 | 632 | | |
638 | 633 | | |
639 | | - | |
| 634 | + | |
640 | 635 | | |
641 | | - | |
| 636 | + | |
642 | 637 | | |
643 | 638 | | |
644 | 639 | | |
645 | | - | |
| 640 | + | |
646 | 641 | | |
647 | | - | |
| 642 | + | |
648 | 643 | | |
649 | | - | |
| 644 | + | |
650 | 645 | | |
651 | | - | |
| 646 | + | |
652 | 647 | | |
653 | 648 | | |
654 | 649 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
748 | 748 | | |
749 | 749 | | |
750 | 750 | | |
751 | | - | |
752 | 751 | | |
753 | 752 | | |
754 | | - | |
755 | | - | |
756 | | - | |
757 | | - | |
758 | | - | |
759 | | - | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
760 | 759 | | |
761 | 760 | | |
762 | 761 | | |
763 | 762 | | |
764 | | - | |
| 763 | + | |
765 | 764 | | |
766 | 765 | | |
767 | 766 | | |
| |||
777 | 776 | | |
778 | 777 | | |
779 | 778 | | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | 779 | | |
784 | 780 | | |
785 | 781 | | |
0 commit comments