[Bug]: Open in → File Explorer on Windows ignores the user's default file manager (always launches explorer.exe)
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
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
- 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). - Confirm it works system-wide:
Start-Process C:\some\folderopens the folder in that file manager. - 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
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.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của pingdotgg/t3code
-
bug needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
pingdotgg/t3code#22819 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của pingdotgg/t3code
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
endora-commerce/endora-commerce#397 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
level/task
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
wazuh/wazuh-dashboard-plugins#9472 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
Maintainer thường phản hồi trong vòng 1 ngày
-
ready-for-agent
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
xavxyz/bei-shan-lin-shui#57 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
opennextjs/opennextjs-cloudflare#1461 ·
Maintainer thường phản hồi trong vòng 1 ngày