GNOME Bugzilla – Bug 545350
GAppInfo deletion
Last modified: 2008-09-26 19:58:04 UTC
It would be useful to - know whether a desktop file is deletable - be able to delete a desktop file specifically since there's a concept of "user defined" desktop files. Right now we have no API for this. Thus I propose we should add the following API g_app_info_can_delete() g_app_info_delete() We need API like this to add a Delete button in the "Add Application" dialog http://people.freedesktop.org/~david/nautilus-add-app.png in Nautilus.
Created attachment 119433 [details] [review] patch Here is an untested patch that adds g_app_info_can_delete(), g_app_info_delete() and g_app_info_reset_type_associations()
Created attachment 119439 [details] test and here is a little test that excercises the new functions
2008-09-26 Matthias Clasen <mclasen@redhat.com> Bug 545350 – GAppInfo deletion Bug 545351 – Reset associations for content type * gio.symbols: * gappinfo.[hc]: New functions g_app_info_can_delete, g_app_info_delete and g_app_info_reset_type_associations. * gdesktopappinfo.c: * gwin32appinfo.c: Implementations of these. * tests/Makefile.am: * tests/desktop-app-info.c: Tests for GAppInfo functionality.