g_app_info_remove_supports_type needs better API documentation
Submitted by Kip
Link to original bug (#729892)
Description
The g_app_info_remove_supports_type() desktop entry function located in gio/gappinfo.c could use better API documentation.
Right now without my attached patch, it wasn't clear that the first parameter 'GAppInfo *appinfo' was not required.
According to the source, it can actually be NULL. In order to remove a MIME entry from both of the 'Added Associations' and 'Default Applications' keys in the user's mimeapps.list, instead of only the former, this parameter actually must be NULL and is the only way to do it from what I could see in following the code paths.
Version: 2.40.x