Using g_spawn_command_line_async() instead of system() now for better compatibility between platforms