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

feat(macos): handle Finder "Open With" via application(_:openFile:)

Đang mở
#1,589 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
56/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
dart, flutter
Lĩnh vực
database, desktop

Hướng nghiên cứu

Start with macos/Runner/AppDelegate.swift and lib/main.dart, then trace FileLaunchService.addPendingTarget and the MethodChannel setup. Check how cold-start events are queued and how running instances receive open events. Done means Finder “Open With” and double-click pass supported files to the app in both cases, with the generic .db/.db3 extensions reconsidered.

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

Mô tả

bug P2

Problem

macos/Runner/Info.plist declares CFBundleDocumentTypes for .sql and .sqlite/.sqlite3/.db/.db3, but AppDelegate.swift does not implement application(_:openFile:) / application(_:open:). On macOS "Open With" and double-click deliver the file as an Apple Event, not in argv, so FileLaunchService.processLaunchArguments(args) (lib/main.dart:27) never sees it. The app opens empty.

FileLaunchService.addPendingTarget exists for "runtime open events", but nothing calls it.

Tasks

  • Implement openFile / open urls in AppDelegate, forward to Dart over a MethodChannel.
  • Handle both cold start (queue until the UI is ready) and an already running instance.
  • Reconsider .db / .db3 as handled extensions (very generic).
Ngôn ngữ chính
Dart
Star
23
Fork
1
Merge trung bình
31 phút
Pull request đã merge (30 ngày)
570

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 QueryaHub/Querya-Desktop

Tất cả issue của QueryaHub/Querya-Desktop

Issue tương tự

Thêm issue về Dart

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.