Merge branch '2901-gio-executable-docs' into 'main'

gappinfo: Document that g_app_info_get_executable() should not be spawned

Closes #2901

See merge request GNOME/glib!3240
This commit is contained in:
Marco Trevisan 2023-01-26 16:41:16 +00:00
commit 2cbc90cc1e

View File

@ -263,6 +263,10 @@ g_app_info_get_description (GAppInfo *appinfo)
* *
* Gets the executable's name for the installed application. * Gets the executable's name for the installed application.
* *
* This is intended to be used for debugging or labelling what program is going
* to be run. To launch the executable, use g_app_info_launch() and related
* functions, rather than spawning the return value from this function.
*
* Returns: (type filename): a string containing the @appinfo's application * Returns: (type filename): a string containing the @appinfo's application
* binaries name * binaries name
**/ **/