+
+ bool delayed_spawn () {
+ try {
+ int exit_status;
+ string error;
+ var command = "sudo /usr/bin/led-pattern-helper test \"" +
+ lpv.pattern.dump () + "\"";
+ Process.spawn_command_line_sync (command, null, out error, out exit_status);
+ if (exit_status != 0) {
+ var information = "Exit status: %d\n%s".printf (exit_status, error);
+ Hildon.Banner.show_information (null, null, information);
+ }
+ } catch (SpawnError e) {
+ Hildon.Banner.show_information (null, null, e.message);
+ }
+
+ return false;
+ }