Bonjour,
J'aimerais ouvrir un logiciel à partir de mon programme, après quelques recherches, j'ai vu qu'il était possible de réaliser ce genre de choses avec la fonction g_spawn_async
Le problème est que dans la doc, ci-dessous, ca me semble assez complexe.
Quelqu'un pourrait-il m'expliquer de façon plus humaine comment ca marche?
Merci d'avance et comme promis, la doc:
gboolean g_spawn_async (const gchar *working_directory,
gchar **argv,
gchar **envp,
GSpawnFlags flags,
GSpawnChildSetupFunc child_setup,
gpointer user_data,
GPid *child_pid,
GError **error);
See g_spawn_async_with_pipes() for a full description; this function simply calls the g_spawn_async_with_pipes() without any pipes.
working_directory?: child's current working directory, or NULL to inherit parent's
argv?: child's argument vector
envp?: child's environment, or NULL to inherit parent's
flags?: flags from GSpawnFlags
child_setup?: function to run in the child just before exec()
user_data?: user data for child_setup
child_pid?: return location for child process ID, or NULL
error?: return location for error
Returns?: TRUE on success, FALSE if error is set