summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2016-02-09 14:50:20 +0100
committerAlexander Larsson <alexl@redhat.com>2016-02-09 14:50:20 +0100
commit0bfb0640304596c8ead79b7c4f0ed5fca177eaa6 (patch)
treed33cc7d302dbd58fc5483744edce40fd3068067b /app
parent0a916c1dee70808158b89e9707439490c8f5858c (diff)
downloadxdg-app-0bfb0640304596c8ead79b7c4f0ed5fca177eaa6.tar.gz
Update exports on uninstall too
Diffstat (limited to 'app')
-rw-r--r--app/xdg-app-builtins-uninstall.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/xdg-app-builtins-uninstall.c b/app/xdg-app-builtins-uninstall.c
index 2405337..376b91f 100644
--- a/app/xdg-app-builtins-uninstall.c
+++ b/app/xdg-app-builtins-uninstall.c
@@ -126,6 +126,12 @@ xdg_app_builtin_uninstall (int argc, char **argv, GCancellable *cancellable, GEr
xdg_app_dir_cleanup_removed (dir, cancellable, NULL);
+ if (is_app)
+ {
+ if (!xdg_app_dir_update_exports (dir, name, cancellable, error))
+ return FALSE;
+ }
+
if (!xdg_app_dir_mark_changed (dir, error))
return FALSE;