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

Aperta
#143 0 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp
Ambito
desktop

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
C++
Stelle
43
Fork
39
Merge medio
1g 6h
PR unite (30g)
12

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di CachyOS/packageinstaller

Tutte le issue di CachyOS/packageinstaller

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.