Skip to content

app-grid-button: Add Uninstall action

Sam Day requested to merge samcday/phosh:uninstall-apps into main

gnome-software supports an --uninstall invocation, which navigates directly to the details page for the app and pops the prompt to uninstall that app.

Unfortunately, this invocation differs from --details in that it requires a fully-formed AppStream "data id", rather than the much simpler desktop ID (which we already have from GIO GAppInfo)

Thankfully, Guido already did all the hard work 4 years ago to implement support for populating an AppStream cache pool. So here we simply blow the dust off that code, and use it to lookup a desktop ID in order to retrieve its data ID.


closes #549 (closed)

Merge request reports

Loading