mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-06 07:43:07 +02:00
gappinfo: Document that g_app_info_get_executable() should not be spawned
Spawning a process correctly is a lot more complicated than just bunging an argument onto the return value from this function. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Helps: #2901
This commit is contained in:
parent
34f5fa046a
commit
c53f9c0d37
@ -263,6 +263,10 @@ g_app_info_get_description (GAppInfo *appinfo)
|
||||
*
|
||||
* 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
|
||||
* binaries name
|
||||
**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user