Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Bug]: Open in → File Explorer on Windows ignores the user's default file manager (always launches explorer.exe)

Đang mở Phù hợp với người mới
#17,323 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
65/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
backend, desktop

Hướng nghiên cứu

Bắt đầu từ fileManagerCommandForPlatform trong apps/server/src/process/externalLauncher.ts, nơi nhánh win32 trả về chuỗi cố định explorer, và đọc resolveWindowsBrowserLaunch trong cùng tệp để xem mẫu dựa trên shell đã được dùng như thế nào. Hoàn thành khi thư mục được mở qua Open in → File Explorer trên Windows đi qua shell và tôn trọng trình quản lý tệp mặc định, còn các đích là tệp vẫn giữ nguyên hành vi hiện tại. Để kiểm tra việc này cần một máy Windows đã đăng ký một trình quản lý tệp không phải mặc định.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Before submitting
  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.
Area

apps/server

Steps to reproduce
  1. On Windows, set a third-party file manager as the default folder handler (e.g. File Pilot, which registers HKCU\Software\Classes\Directory\shell\open\command).
  2. Confirm it works system-wide: Start-Process C:\some\folder opens the folder in that file manager.
  3. In T3 Code, use Open in → File Explorer on a project.
Expected behavior

The folder opens in the default file manager, the same as any other shell "open" of a folder.

Actual behavior

Windows File Explorer always opens. fileManagerCommandForPlatform in apps/server/src/process/externalLauncher.ts returns the literal explorer for win32, and explorer.exe <dir> bypasses the Directory\shell\open verb. Verified on the same machine:

Launch Result
explorer.exe C:\Work\t3code\apps Windows File Explorer
Start-Process C:\Work\t3code\packages (ShellExecute) File Pilot

Possible fix: open the path through the shell on win32 instead of spawning explorer directly. The launcher already does this for browser targets (resolveWindowsBrowserLaunch). File targets keep their current behaviour, since explorer <file> already hands the file to its default app.

Impact

Minor bug or occasional failure

Version or commit

Desktop nightly 0.0.46 (code path present on main at 9b0df135)

Environment

Windows 11 Pro 10.0.26200, File Pilot 0.6.3

Workaround

None inside T3 Code; open the folder manually in the file manager.

Ngôn ngữ chính
TypeScript
Star
24.8k
Fork
6.4k
Merge trung bình
3 giờ 39 phút
Pull request đã merge (30 ngày)
301

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của pingdotgg/t3code

Tất cả issue của pingdotgg/t3code

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.