Add g_osx_app_info_get_for_id()
@Jehan
Submitted by Jehan Link to original bug (#787489)
Description
Created attachment 359451 gio: add function g_osx_app_info_get_for_id().
Getting a MacOS Bundle from its known id is useful and use different code depending on the version of MacOS available. We do this in GIMP as well because GIMP needs to research the presence of third-party software (i.e. Darktable and Rawtherapee right now) to run them.
GLib already implemented the code logics with MacOS API and different code paths depending on MacOS version: get_bundle_for_id() in gio/gosxappinfo.c. Unfortunately there is no public API so we can't use this from GIMP.
Therefore I propose:
GOsxAppInfo * g_osx_app_info_get_for_id (const gchar *mac_bundle_id);
Cf. attached patch.
Patch 359451, "gio: add function g_osx_app_info_get_for_id().":
0001-gio-add-function-g_osx_app_info_get_for_id.patch
Version: 2.53.x