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

オープン
#143 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cpp
領域
desktop

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
C++
スター
43
フォーク
39
平均マージ
1日 6時間
マージ済み PR(30日)
12

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CachyOS/packageinstaller のほかの issue

CachyOS/packageinstaller の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。