Merge lp://staging/~donadigo/slingshot/uninstall-apps into lp://staging/~elementary-pantheon/slingshot/trunk

Proposed by Adam Bieńkowski
Status: Work in progress
Proposed branch: lp://staging/~donadigo/slingshot/uninstall-apps
Merge into: lp://staging/~elementary-pantheon/slingshot/trunk
Diff against target: 117 lines (+49/-2)
3 files modified
CMakeLists.txt (+1/-1)
src/CMakeLists.txt (+1/-0)
src/Widgets/AppEntry.vala (+47/-1)
To merge this branch: bzr merge lp://staging/~donadigo/slingshot/uninstall-apps
Reviewer Review Type Date Requested Status
Danielle Foré Needs Fixing
Jung-Kyu Park (community) Approve
Neal Gompa (community) Needs Information
Review via email: mp+313915@code.staging.launchpad.net

Commit message

* Add uninstall item to app right-click menu to uninstall apps

Description of the change

This branch fixes bug #1211570: "Uninstall apps from context menu in Slingshot".

The implementation is done with appstream, altough on Slack we also talked about a possible implementation depending on Contractor / appstream-glib in the future.

The Gtk.show_uri error is only handeled internally, so there is no warning message shown to the user when the app handling appstream URI couldn't be launched for some reason (definitely should be shown in the future).

Please test, if launching wingpanel doesn't take too much time, because this branch uses heavy AppStream.Pool.load () which could make impact on loading times on logging in first time or launching wingpanel from terminal.

To post a comment you must log in.
714. By Adam Bieńkowski

Remove unneded return line; check if component id is already assigned

Revision history for this message
Neal Gompa (ngompa13) wrote :

If you're going to use AppStream instead of appstream-glib, be sure to target AppStream 0.10 or newer only. There's an API break between 0.9.x and 0.10.x.

review: Needs Fixing
Revision history for this message
Neal Gompa (ngompa13) wrote :

Also, I'm curious why you moved the #ifdef for HAS_PLANK. There doesn't seem to be an obvious reason for it.

review: Needs Information
715. By Adam Bieńkowski

Bump appstream version to 0.10.0

Revision history for this message
Jung-Kyu Park (bagjunggyu) wrote :

It works good with AppCenter.

review: Approve
Revision history for this message
Danielle Foré (danrabbit) wrote :

This is not working for David and me. But even if it were working, I would not merge because it doesn't do what it says it does. It says "Uninstall" but it doesn't actually perform an uninstall.

review: Needs Fixing
Revision history for this message
Rico Tzschichholz (ricotz) wrote :

This is already merged!

Revision history for this message
Adam Bieńkowski (donadigo) wrote :

ricotz: We discussed this on Slack, it will be just reverted, hence the review.

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches