Re: [Nautilus-list] Need to add Removabel Media Support for Solaris on gnome CVS

On Mon, 8 Apr 2002, Alex Larsson wrote:

> Something like: 
> char *argv[3]={"command", "-s", argument, NULL};
> res = g_spawn_async (NULL, argv, NULL,
>                      G_SPAWN_SEARCH_PATH,
>                      NULL, NULL,
> 	             NULL, NULL);
> For bonus points you would want to pass a GError and display a nice dialog 
> on failure.

Even better! There is a:
gboolean g_spawn_command_line_async (const gchar          *command_line,
                                     GError              **error);

Which seems ideal for this purpose.

 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a shy pirate werewolf with a mysterious suitcase handcuffed to his arm. 
She's a sharp-shooting bisexual mercenary who can talk to animals. They fight 

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]