V2: Register as appstream:// handler so Plasma's "Uninstall or Manage Add-ons…" works with Package Installer

Đang mở
#143 0 bình luận 1 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/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ệ
cpp
Lĩnh vực
desktop

Hướng nghiên cứu

The launcher entry is the cachyos-pi.desktop file, which currently has only Exec=/usr/bin/cachyos-pi with no MimeType line and no %u field. Start by checking how the C++ entry point parses command-line arguments and how it opens a package's page, since an appstream:// URL has to be routed to that same page. Done means the desktop file declares x-scheme-handler/appstream, and launching the app with an appstream:// link opens the matching app page.

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

Mô tả

On Plasma, right-clicking an app in the launcher shows "Uninstall or Manage Add-ons…", but only if some installed app handles appstream:// links. Other stores like Shelly and Bazaar register for this (with Bazaar I think it only works for Flatpak apps), so the option shows up and opens the app's page in them.

Package Installer doesn't register for it. cachyos-pi.desktop only has Exec=/usr/bin/cachyos-pi, no MimeType and no %u. So if it's the only store installed, the option doesn't show up at all.

Would be great if Package Installer registered x-scheme-handler/appstream and opened the app's page when launched with an appstream:// link. Then people on KDE could use it from the launcher like any other store.

Side note: Plasma's /usr/share/applications/kde-mimeapps.list sets x-scheme-handler/appstream=org.kde.discover.urlhandler.desktop, so if Discover is installed it would still win. Maybe CachyOS could set cachyos-pi as the default in /etc/xdg/mimeapps.list once it supports the scheme.

Tested on CachyOS, Plasma 6.8.3, Package Installer 2.0.0.

Ngôn ngữ chính
C++
Star
43
Fork
39
Merge trung bình
1 ngày 6 giờ
Pull request đã merge (30 ngày)
12

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 CachyOS/packageinstaller

Tất cả issue của CachyOS/packageinstaller

Issue tương tự

Thêm issue về C++

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.